Can you post the error that comes with your code?
Some pointers what may be wrong:
Is your Client Model in a Namespace? Then you need to write $this->belongsTo('App\Client'); (for example)
Does your installation have a client_id column? If it is named differently you have to pass the name as second parameter to belongsTo() (like this: $this->belongsTo('Client', 'the_client_id');)
Your view looks correct so the error should be either in the relationship or in the database. But without an error message it's hard to pinpoint. :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community