Route::auth PHP Method

auth() public static method

Register the typical authentication routes for an application.
public static auth ( ) : void
return void
        public static function auth()
        {
            \Illuminate\Routing\Router::auth();
        }

Usage Example

Example #1
0
<?php

Route::get('/', 'PagesController@home');
// Pages for flyers route
// Route::group(['middleware' => ['web']], function() {
// 	Route::resource('flyers', 'FlyersController');
// });
Route::group(['middleware' => ['web']], function () {
    Route::resource('flyers', 'FlyersController');
    Route::auth();
    Route::get('/home', 'HomeController@index');
    Route::get('{zip}/{street}', 'FlyersController@show');
    Route::post('{zip}/{street}/photos', 'FlyersController@addPhoto');
});
All Usage Examples Of Route::auth