Route::group(['middleware' => 'admin'], function () {
Route::get('admin', function()
{
return view('admin.dashboard');
});
Route::resource('articles','ArticlesController');
Route::resource('categories','CategoriesController');
});
Route::group(['middleware' => 'admin', 'prefix' => 'admin'], function () {
Route::get('', function()
{
return view('admin.dashboard');
});
Route::resource('articles','ArticlesController');
Route::resource('categories','CategoriesController');
});