Files
pollux/routes/web.php
T
Lukas Halbritter 0be3623fb3 Re-sorted routes to avoid an 'page not found error'.
The /people/create route was covered by the /people/{person} route. Since 'create' was assumed to be an person id, the page was not found.
2018-09-25 15:05:03 +02:00

27 lines
1.1 KiB
PHP

<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
/******************************************************************************
* PEOPLE *
******************************************************************************/
Route::get('/people', 'PeopleController@index');
Route::post('/people', 'PeopleController@store');
Route::get('/people/create', 'PeopleController@create');
Route::get('/people/{person}', 'PeopleController@show');
Route::patch('/people/{person}', 'PeopleController@update');
Route::delete('/people/{person}', 'PeopleController@destroy');
Route::get('/people/{person}/edit', 'PeopleController@edit');
Route::get('/people/{person}/delete', 'PeopleController@delete');