'datetime', 'expires_at' => 'datetime', ]; public function user() { return $this->belongsTo(User::class); } public function plan() { return $this->belongsTo(MembershipPlan::class, 'plan_id'); } }