hasMany('App\Models\AddressBookModel','company_id','id'); } public function mtask() { return $this->belongsTo('App\Models\Task','id','client_id')->orderBy('id','DESC'); } public function invoice() { return $this->hasMany('App\Models\Invoice','client_id','id'); } }