I'm little bit confuse I want to know the difference between those three returns:
return view('post', ['post' => $post]);
return view('post', compact('post'));
return view('post')->with('post'=>$post);
So, can someone explain for me the difference in easy way.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2F8GLD8
via IFTTT
Aucun commentaire:
Enregistrer un commentaire