'books'], function() { Route::get('/', 'BookController@index'); Route::get('/create', 'BookController@create'); Route::post('/', 'BookController@store'); Route::get('/{slug}/edit', 'BookController@edit'); Route::put('/{slug}', 'BookController@update'); Route::delete('/{id}/destroy', 'BookController@destroy'); Route::get('/{slug}', 'BookController@show'); }); Route::get('/', function () { return view('base'); });