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

@ -12,7 +12,7 @@ class BookmarksController extends Controller
/**
* Show the most recent bookmarks.
*
* @return \Illuminate\View\View
* @return View
*/
public function index(): View
{
@ -24,8 +24,8 @@ class BookmarksController extends Controller
/**
* Show a single bookmark.
*
* @param \App\Models\Bookmark $bookmark
* @return \Illuminate\View\View
* @param Bookmark $bookmark
* @return View
*/
public function show(Bookmark $bookmark): View
{