When I use this code in Laravel framework:
throw new Exception("failed");
it throws this error:
FatalErrorException in MyController.php line 178: Class 'App\Http\Controllers\Exception' not found
Does anybody know how can I use (include) that Exception class to my controller? Where is actually it?
\Exception, your code is namespaced