Answer the question
In order to leave comments, you need to log in
How to display Exception text instead of 'Server Error' Laravel?
If I set APP_DEBUG=false in .env.
That instead of the text of my Exception' is produced 'Server Error'
Is BaseExceptions extends DomainExceptions.
And all the rest are inherited from BaseExceptions.
How to output the text of a specific Exception?
Answer the question
In order to leave comments, you need to log in
To output a specific exception, you must throw it. for example
class SooperPooperException extends BaseException {}
try {
// вызываем свой код который может кинуть исключение
} catch (SooperPooperException $e) {
// рендерим ответ
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question