Routes
Let's look at how to use routing.
Route::get('home', 'about', 'about-us',$segment);
The first parameter is the controller name followed by the method name, then our final URL and the segment that we type into the browser.
Route::get('home', 'about', 'about-us','about-us');
Routes with parameters
You can also add as many parameters as you wish, in the following way.
Route::get('welcome', 'show', 'show-one',$segment,$param1);
Route::get('welcome', 'show', 'show-one','show-one',1);
POST Routes
When working with POST routes, remember to include an array of data.
Route::post('security', 'signin','signin', 'signin',$arrayData);