policies updated

This commit is contained in:
Benjamin Takats
2022-12-01 17:39:17 +01:00
parent 5d958dd177
commit 8237e1abfd
7 changed files with 83 additions and 38 deletions

View File

@@ -11,17 +11,20 @@ class Participant extends Model
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = [];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'id' => 'integer',
];
public function registrations()
{
return $this->hasMany(\App\Models\Registration::class);
}
}