hasMany(CustomerReturnDetail::class,'customer_id','id'); } public function user(){ return $this->hasOne(User::class,'id','user_id'); } }