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.
27 lines
1.1 KiB
PHP
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');
|