Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel pass view with data

return view("blog", ["posts"=>$posts]);
Or:
return view("blog", compact("posts"));
 
PREVIOUS NEXT
Tagged: #laravel #pass #view #data
ADD COMMENT
Topic
Name
5+9 =