This commit is contained in:
salam committed 2025-09-26 05:34:32 +02:00
1 parent 60249dffd9
commit 1d16946f20
18 files changed
+56 -86

No files matched your search

+1 -1
View File
@@ -42,6 +42,6 @@ class Konto extends Model
public function plan(): HasOne
{
return $this->hasOne(Plan::class);
return $this->hasOne(Plan::class, 'id', 'plan_id');
}
}
+13 -1
View File
@@ -6,5 +6,17 @@ use Illuminate\Database\Eloquent\Model;
class Plan extends Model
{
//
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'payment',
'description',
'preis',
'number_user',
'number_gutachter',
];
}