Im passing data to my blade view with return View::make('blog', $posts);
and in my blade view I'm trying to run an @foreach ($posts as $post)
I end up with an error saying that $posts
isn't defined.
My question is how would the $posts
array be called?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…