create user role and menu, create seeder for first user and create crud role, menu and user

This commit is contained in:
arifal
2025-02-11 02:35:53 +07:00
parent 6307417ae3
commit cb90f69d1e
37 changed files with 1326 additions and 151 deletions

View File

@@ -49,4 +49,8 @@ class User extends Authenticatable
'password' => 'hashed',
];
}
public function roles(){
return $this->belongsToMany(Role::class, 'user_role')->withTimestamps();
}
}