Improve exception handling and model binding
This commit is contained in:
parent
e9ca934cb4
commit
0fca80e7e4
22 changed files with 148 additions and 82 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue