Monday, March 20, 2017

What is difference between two type of route on laravel?

What is/are the difference between the following route on laravel?

Route::resource('posts', 'PostsController');
Route::resource('posts', Admin\PostsController::class

when should i use and which one should i use?

Thanks.



via Sumon Mahmud

Advertisement