For some reason, I cannot catch DB exceptions inside a seed class: the code never enters the catch block.
I always get this error:
PHP Warning: Uncaught exception 'Illuminate\Database\QueryException'
I am able to do elsewhere, for example in the routes.php file.
I tried to catch Exception, \Exception, \PDOException, \Illuminate\Database\QueryException and so on, but I had no luck.
Any idea?
Thanks for your help.
I tried to explain better my problem on StackOverflow... Thanks.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community