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 LikesController extends Controller
/**
* Show the latest likes.
*
* @return \Illuminate\View\View
* @return View
*/
public function index(): View
{
@ -24,8 +24,8 @@ class LikesController extends Controller
/**
* Show a single like.
*
* @param \App\Models\Like $like
* @return \Illuminate\View\View
* @param Like $like
* @return View
*/
public function show(Like $like): View
{