belongsTo('App\Entities\Agencies\Agency'); } public function projects() { return $this->hasMany('App\Entities\Projects\Project', 'customer_id'); } public function nameLink() { return link_to_route('customers.show', $this->name, [$this->id], [ 'title' => trans( 'app.show_detail_title', ['name' => $this->name, 'type' => trans('customer.customer')] ), ]); } }