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')] ), ]); } }