first of all the relationship going on between the project and the client is one to many in a broader sense a client will have one or many project will a project belongs to a client that means in your user class model the relationship should be
public function projects() { return $this->hasMany("App\project"); }
while in your project model class you should have
public function client() { return $this->belongsTo("App\User"); }
that way you can query them easily i hope this help your case . give me feed back when you try it
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community