Improve exception handling and model binding

This commit is contained in:
Jonny Barnes 2020-08-09 15:54:10 +01:00
parent e9ca934cb4
commit 0fca80e7e4
22 changed files with 148 additions and 82 deletions

View file

@ -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');