From 2c9d43a6b8392731adbcc089b814160265b4acaa Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 7 Sep 2017 15:40:45 +0100 Subject: [PATCH] The new L5.5 route->view method means we can get rid of the static routes controller and still cache our routes file --- app/Http/Controllers/StaticRoutesController.php | 16 ---------------- routes/web.php | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 app/Http/Controllers/StaticRoutesController.php diff --git a/app/Http/Controllers/StaticRoutesController.php b/app/Http/Controllers/StaticRoutesController.php deleted file mode 100644 index 55abb26e..00000000 --- a/app/Http/Controllers/StaticRoutesController.php +++ /dev/null @@ -1,16 +0,0 @@ - config('url.longurl')], function () { Route::get('/', 'NotesController@index'); //Static project page - Route::get('projects', 'StaticRoutesController@projects'); + Route::view('projects', 'projects'); //Static colophon page - Route::get('colophon', 'StaticRoutesController@colophon'); + Route::view('colophon', 'colophon'); //The login routes to get authe'd for admin Route::get('login', 'AuthController@showLogin')->name('login');