Files
znetsixe 9dcbeeccc7 Fix Dutch model table names and seeder status values
- Add explicit $table property to all Eloquent models with Dutch names
- Fix pivot table names in belongsToMany relationships
- Fix seeder: use valid enum values for afhankelijkheden status

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 14:38:51 +02:00

30 lines
523 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Role extends Model
{
protected $table = 'roles';
protected $fillable = [
'naam',
'beschrijving',
'permissies',
];
protected function casts(): array
{
return [
'permissies' => 'array',
];
}
public function users(): BelongsToMany
{
return $this->belongsToMany(User::class, 'role_user');
}
}