Auth::routes();
/******************* BACKEND – ADMIN **************/
Route::middleware([‘auth’])
->prefix(‘admin’) // common prefix for all URL
->namespace(‘Backend’) // Location or Path of Controller after HTTP/Controllers
->name(‘admin.’) // common name route for all Routing. Will concat with other route
->group(function(){
Route::get(”,’DashboardController@index’)->name(‘index’);
Route::get(‘social’,’DashboardController@social’)->name(‘social’);
Route::post(‘socialStore’,’DashboardController@socialStore’)->name(‘socialStore’);
Route::resources([
‘report’ => ‘ReportController’,
]);
});