Files
pollux/routes/web.php
T

32 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 *
******************************************************************************/
# Showing people
Route::get('/people', 'PeopleController@index');
Route::get('/people/{person}', 'PeopleController@show');
# Creating new people
Route::get('/people/create', 'PeopleController@create');
Route::post('/people', 'PeopleController@store');
# Editing people
Route::get('/people/{person}/edit', 'PeopleController@edit');
Route::patch('/people/{person}', 'PeopleController@update');
# Deletig people
Route::get('/people/{person}/delete', 'PeopleController@delete');
Route::delete('/people/{person}', 'PeopleController@destroy');