Groups
Groups
Sign in
Groups
Groups
Laravel
Conversations
Labels
About
Send feedback
Help
Create custom exception in Laravel 5.2
94 views
Skip to first unread message
Setyo Agung Nugroho
unread,
Jan 18, 2016, 1:06:39 AM
1/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Laravel
How to create custom exception specially QueryException in Laravel 5.2
Setyo Agung Nugroho
unread,
Jan 18, 2016, 1:35:12 AM
1/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Laravel
OK, I got it.
i add this code to render function in Handler.php
if
(
$e
instanceof
QueryException
)
{
return
response
(
)
-
>
view
(
'errors.custom'
)
;
}
Source :
https://laravel.com/docs/5.2/errors
Reply all
Reply to author
Forward
0 new messages