The new L5.5 route->view method means we can get rid of the static routes controller and still cache our routes file

This commit is contained in:
Jonny Barnes 2017-09-07 15:40:45 +01:00
parent b73ad5f6af
commit 2c9d43a6b8
2 changed files with 2 additions and 18 deletions

View file

@ -1,16 +0,0 @@
<?php
namespace App\Http\Controllers;
class StaticRoutesController extends Controller
{
public function projects()
{
return view('projects');
}
public function colophon()
{
return view('colophon');
}
}

View file

@ -15,10 +15,10 @@ Route::group(['domain' => 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');