Update composer dependencies, update laravel-excel, add get logout route, and replace Route::controller instance with pure routes

This commit is contained in:
Kevin MacMartin 2016-08-19 18:50:08 -04:00
parent ec186a4edb
commit f82f9d130e
4 changed files with 654 additions and 229 deletions

View file

@ -12,7 +12,8 @@
"gwnobots/laravel-head": "dev-master",
"spatie/laravel-newsletter": "^2.2",
"intervention/image": "^2.3",
"maatwebsite/excel": "~2.0.0"
"maatwebsite/excel": "^2.1",
"laravelcollective/bus": "^5.2"
},
"require-dev": {
"fzaninotto/faker": "~1.4",

868
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -183,6 +183,7 @@ return [
Gwnobots\LaravelHead\LaravelHeadServiceProvider::class,
Spatie\Newsletter\NewsletterServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
Collective\Bus\BusServiceProvider::class,
Maatwebsite\Excel\ExcelServiceProvider::class,
],

View file

@ -32,6 +32,7 @@ Route::post('/subscription-submit', 'SubscriptionController@postSubscriptionSubm
*/
Route::auth();
Route::get('/logout', 'Auth\LoginController@logout');
/*
|--------------------------------------------------------------------------
@ -39,7 +40,13 @@ Route::auth();
|--------------------------------------------------------------------------
*/
Route::group(['prefix' => 'dashboard'], function() {
Route::group([ 'prefix' => 'dashboard' ], function() {
Route::get('/', 'DashboardController@index');
Route::controller('', DashboardController::class);
Route::get('/contact', 'DashboardController@getContact');
Route::get('/subscriptions', 'DashboardController@getSubscriptions');
Route::get('/export', 'DashboardController@getExport');
Route::post('/image-upload', 'DashboardController@postImageUpload');
Route::post('/edit', 'DashboardController@postEdit');
Route::post('/reorder', 'DashboardController@postReorder');
Route::delete('/delete', 'DashboardController@deleteDelete');
});