belongsTo(User::class,'id_user'); } public function plans(){ return $this->hasMany(plan::class,'id'); } }