Move constants to dedicated enum

This commit is contained in:
James Cole
2022-04-13 14:21:17 +02:00
parent 342e9a263a
commit a2627b5158
2 changed files with 34 additions and 8 deletions

View File

@@ -53,14 +53,6 @@ use Illuminate\Support\Carbon;
*/
class UserRole extends Model
{
public const CHANGE_PIGGY_BANKS = 'change_piggies';
public const CHANGE_REPETITIONS = 'change_reps';
public const CHANGE_RULES = 'change_rules';
public const CHANGE_TRANSACTIONS = 'change_tx';
public const FULL = 'full';
public const OWNER = 'owner';
public const READ_ONLY = 'ro';
public const VIEW_REPORTS = 'view_reports';
protected $fillable = ['title'];
/**