N
N
NikolayAlb2018-11-19 18:17:51
Laravel
NikolayAlb, 2018-11-19 18:17:51

How not to interrupt the application when the remote Storage fails?

How is it possible in an existing application if a certain Storage is unavailable (for example, if the login data in the configuration is incorrect) - instead of ErrorException, continue working? Accordingly, the error is logged and notifies who is needed, the main thing is to continue working here and now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2018-11-19
@JhaoDa

Read in the PHP documentation about

try {
    //
} catch (...) {
    //
}

And https://laravel.com/docs/5.6/errors

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question