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

routes.php

2.app/exceptions/toshikier.php

app\exceptions\toshikier.php

3.composer.php

composer.json

4.app/exceptions/hanlder.php

app\exceptions\handler.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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -