Route create a request URL of your application. In Laravel 5.5 routes are created inside the routes folder. Routes for the website are created in web.phpfile, as well the routes for the API are created inside api.php. The router allows you to register routes that respond to any HTTP verb

Laravel create the routing for following request method :

• put
• patch
• post
• get
• options
• delete

The most basic Laravel routes accept a URI, providing a very simple method of defining routes:

Syntax:-

Route::get($uri, $callback);Route::post($uri, $callback);Route::put($uri, $callback);Route::patch($uri, $callback);Route::delete($uri, $callback);Route::options($uri, $callback);

Route Naming

In…


mongoimport --db databaseName --collection tableName --file filepath.json

eg. Place your file in admin folder:-

C:\Users\admin\tourdb\places.jsonRun this command on your teminal:-mongoimport --db tourdb --collection places --file ~/tourdb/places.json

Out-Put:-

admin@admin-PC MINGW64 /
$ mongoimport --db tourdb --collection places --file ~/tourdb/places.json
2019-08-26T14:30:09.350+0530 connected to: localhost
2019-08-26T14:30:09.447+0530 imported 10 documents

Mohit Sharma

Hello! I am Mohit Sharma. Web Developer, Graphic Designer and mobile Developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store