Answer the question
In order to leave comments, you need to log in
How to talk to the DB facade and find out how it worked?
Good evening gentlemen :)
DB::table('zagon_all')->where('id', '=', $number_animals)->delete();
Answer the question
In order to leave comments, you need to log in
The delete() method returns a boolean value (true/false) depending on whether the request was successful or not. Check it out for him.
Judging by your question, you do not understand what a facade is. The facade itself does not implement or "work out" anything, it only takes the object out of the container and calls the method that you "called from the facade" on it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question