Improve exception handling and model binding
This commit is contained in:
parent
e9ca934cb4
commit
0fca80e7e4
22 changed files with 148 additions and 82 deletions
|
@ -156,11 +156,11 @@ Route::group(['domain' => config('url.longurl')], function () {
|
|||
|
||||
// Contacts
|
||||
Route::get('contacts', 'ContactsController@index');
|
||||
Route::get('contacts/{nick}', 'ContactsController@show');
|
||||
Route::get('contacts/{contact:nick}', 'ContactsController@show');
|
||||
|
||||
// Places
|
||||
Route::get('places', 'PlacesController@index');
|
||||
Route::get('places/{slug}', 'PlacesController@show');
|
||||
Route::get('places/{place}', 'PlacesController@show');
|
||||
|
||||
Route::get('search', 'SearchController@search');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue