Answers for "Property [id] does not exist on this collection instance."

0

Property [id] does not exist on this collection instance.

$user = User::where('name', 'like', '%Mat%')->first();

$user->posts->each(function($post) {
    echo $post->comment;
});
Posted by: Guest on April-14-2021

Code answers related to "Property [id] does not exist on this collection instance."

Browse Popular Code Answers by Language