Throw some exceptions so I can spot deprecated code.

This commit is contained in:
James Cole
2023-09-21 16:09:40 +02:00
parent 0b220f3288
commit 62bba0d33b
22 changed files with 51 additions and 42 deletions

View File

@@ -84,7 +84,7 @@ class TransactionGroup extends Model
];
/** @var array Fields that can be filled */
protected $fillable = ['user_id', 'title'];
protected $fillable = ['user_id', 'user_group_id', 'title'];
/**
* Route binder. Converts the key in the URL to the specified object (or throw 404).
@@ -116,6 +116,14 @@ class TransactionGroup extends Model
throw new NotFoundHttpException();
}
/**
* @return BelongsTo
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
/**
* @return HasMany
*/
@@ -124,14 +132,6 @@ class TransactionGroup extends Model
return $this->hasMany(TransactionJournal::class);
}
/**
* @return BelongsTo
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
/**
* @return BelongsTo
*/