samedi 30 juillet 2016

Accessing parameters in Request

I have a question about obtaining parameters from Request object.

What is the difference between

$name = $request->name;

OR

$name = $request->input("name");

They show the same behavior. I am asking that from the typing perspective, it is faster to utilize #1 method. But I don't know the difference. Is #1 prone to SQL injections?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2aieeaz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire