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

@ -20,7 +20,7 @@ class ShortURLsController extends Controller
/**
* Redirect from '/' to the long url.
*
* @return \Illuminate\Http\RedirectResponse
* @return RedirectResponse
*/
public function baseURL(): RedirectResponse
{
@ -30,7 +30,7 @@ class ShortURLsController extends Controller
/**
* Redirect from '/@' to a twitter profile.
*
* @return \Illuminate\Http\RedirectResponse
* @return RedirectResponse
*/
public function twitter(): RedirectResponse
{
@ -40,7 +40,7 @@ class ShortURLsController extends Controller
/**
* Redirect from '/+' to a Google+ profile.
*
* @return \Illuminate\Http\RedirectResponse
* @return RedirectResponse
*/
public function googlePlus(): RedirectResponse
{
@ -53,7 +53,7 @@ class ShortURLsController extends Controller
*
* @param string Post type
* @param string Post ID
* @return \Illuminate\Http\RedirectResponse
* @return RedirectResponse
*/
public function expandType(string $type, string $postId): RedirectResponse
{