'admin'], function () { Route::get('/', 'Admin\DefaultController@index')->name('admin'); Route::get('albums/{id}/delete', 'Admin\AlbumController@delete')->name('albums.delete'); Route::resource('albums', 'Admin\AlbumController'); Route::resource('photos', 'Admin\PhotoController'); }); // Gallery Route::get('/', 'Gallery\DefaultController@index')->name('home'); Route::get('/{albumUrlAlias}/{photoFilename}', 'Gallery\PhotoController@view')->name('viewPhoto');