N
N
Niksteklo2021-07-06 11:14:45
Laravel
Niksteklo, 2021-07-06 11:14:45

Checking that a database request was successful Laravel 8?

Good morning, gentlemen. If someone here works on Laravel, then this is a question for you.

How do you check that the query to the database (select, insert...) was successfully completed?

try catch, checking for true, or maybe some other options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kuznetsov, 2021-07-06
@dima9595

If there are no errors on the site or in the logs, then there are no errors in 99.9% of cases. Try/Catch only gives access to the error trapping.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question