Answer the question
In order to leave comments, you need to log in
How to safely add records to mysql from laravel 5.4?
Question for Laravel experts.
In particular, I'm interested in this one:
public function store(Request $request)
{
Model::create($request->all());
}
Answer the question
In order to leave comments, you need to log in
Those. do you admit that the documentation shows potentially dangerous ways? Like, "what is it," right?
Short answer: yes, it's safe.
And I strongly advise you to read about PDO to understand the internal mechanisms of working with the database, because Laravel, surprisingly, uses it, and is generally written in PHP. And you, apparently, missed the stage of studying PHP ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question