I want to pass an array of data into a partial, this partial is then being called from another view.
$posts = [
"One",
"Two",
"Three"
];
return View::make('partials.post_template', $posts);
Inside the .blade.phpfile I am then doing
{{$posts}}
This returns and error of Undefined variable: posts Can someone tell me what I am doing wrong? Thanks
View::make('partials.post_template', array('posts' => $posts));- And do you understand what undefined variable means? If so, what don't you understand you're doing wrong so far with such error message?