'dashboard' ], function() { Route::get('/', 'DashboardController@index'); Route::get('/contact', 'DashboardController@getContact'); Route::get('/subscriptions', 'DashboardController@getSubscriptions'); Route::get('/export/{model}', 'DashboardController@getExport'); Route::post('/image-upload', 'DashboardController@postImageUpload'); Route::post('/file-upload', 'DashboardController@postFileUpload'); Route::post('/edit', 'DashboardController@postEdit'); Route::post('/reorder', 'DashboardController@postReorder'); Route::delete('/delete', 'DashboardController@deleteDelete'); Route::delete('/image-delete', 'DashboardController@deleteImageDelete'); Route::delete('/file-delete', 'DashboardController@deleteFileDelete'); }); /* |-------------------------------------------------------------------------- | Public Routes |-------------------------------------------------------------------------- */ Route::get('/language/{lang}', function($lang) { Language::setSessionLanguage($lang); return redirect()->back(); }); Route::get('/', function() { return view('pages.index'); }); Route::get('/contact', function() { return view('pages.contact'); });