Support the ongoing development of Laravel.io →
Requests Input Eloquent
Last updated 2 years ago.
0

Nobody??

0

try using

Auth::user()->posts()->where('id', '=', $id)->get();
0

moinescumihai said:

try using

Auth::user()->posts()->where('id', '=', $id)->get();

No bro, My

Auth::user()->posts()->findOrFail($id);

is working perfectly, but how to bind it with my route? Look at my first Code line

0

Sign in to participate in this thread!

Eventy

Your banner here too?

LonnyX lonnyx Joined 30 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.