4 |--------------------------------------------------------------------------
6 |--------------------------------------------------------------------------
8 | Here is where you can register all of the routes for an application.
9 | It's a breeze. Simply tell Laravel the URIs it should respond to
10 | and give it the controller to call when that URI is requested.
15 Route::group(['prefix' => 'books'], function() {
17 Route::get('/', 'BookController@index');
18 Route::get('/create', 'BookController@create');
19 Route::post('/', 'BookController@store');
20 Route::get('/{slug}/edit', 'BookController@edit');
21 Route::put('/{slug}', 'BookController@update');
22 Route::delete('/{id}/destroy', 'BookController@destroy');
23 Route::get('/{slug}', 'BookController@show');
26 Route::get('/', function () {