hi i was trying to do a query like
however this query outputs something like this
["1486468548.jpg"]
i was expecting
1486468548.jpg
so that it can actually be read. any ideas on how to remove the blocks and quotes??? i know it is not a good practise to query in blade but with my code flow i dont know how else to ge the user avatars.
My controller looks like this. its where the posts are generated from. is there a way i can get the user avatar with a value of posts table. I know it exists but i dont know how
public function getDashboard()
{
$posts = Post::orderBy('created_at', 'desc')->get();
return view('home', ['post' => $posts]);
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire