@foreach($tasks as $t)
// works fine
// Trying to get property of non-object
// something similar error.
@endforeach
Given the following data structure, how could I access the last_active
field of the related model?
Task:
public function client(){
return $this->belongsTo('\App\Client');
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire