Answers for "laravel getting data from http and pass to view"

PHP
7

laravel pass view with data

return view("blog", ["posts"=>$posts]);
Or:
return view("blog", compact("posts"));
Posted by: Guest on January-03-2020
0

laravel get data from request

dd($request->all());
//print an array of the input name and the input value
Posted by: Guest on July-04-2020

Code answers related to "laravel getting data from http and pass to view"

Browse Popular Code Answers by Language