php - Laravel 5 Customexception -
i'm playing around laravel5 test out custom exception. returns error
call member function send() on string
and can't figure out why.
1.routes.php
2.app/exceptions/toshikier.php
3.composer.php
4.app/exceptions/hanlder.php
if take @ render method annotations.
/** * render exception response. * * @param \illuminate\http\request $request * @param \exception $e * @return \illuminate\http\response */
you'll see have return \illuminate\htttp\response.
i made own exception too, handle new exception this
return response()->view("your.view", [], 403);
Comments
Post a Comment