Routing

Basic Routine

Basic Routing with anonymous function

Route View

Below code Sample
Route::view('/post','postpage');

Route CMD

route:cache            Create a route cache file for faster route registration
route:clear            Remove the route cache file
route:list             List all registered routes

Routing Parameters & Constraints

Optional Parameters

Multiple Parameter

Routing Constraints

Route Group

404 Not Fond Custom Page (Fallback())

Route::fallback(function (){
   return view('pagenotfound');
});

Last updated