Route grouping in laravel

Grouping Routes in laravel Sharing common requirements or attributes, such as middleware or namespaces with large number of routes needs you  to define those attributes on each individual route.Route groups allow you to share those attributes using Route::group method.You can pass these attribute as first argument of method. Examples:-Using Middleware in Route Route::group([‘middleware’ => ‘auth’], […]

Read More

What is reverse routing in laravel

Reverse Routing in Laravel In Laravel reverse routing is generating URL’s based on route declarations.Reverse routing makes your application so much more flexible. For example the below route declaration tells Laravel to execute the action “login” in the  users controller when the request’s URI is ‘login’. //http://mysite.com/login Route::get(‘login’, ‘users@login’); Using reverse routing we can create […]

Read More