Role
extends Model
in package
uses
HasFactory
Role Model
This model manages user roles and permissions in the airport system. It defines different role types for users such as administrators, staff members, or service providers.
Table of Contents
Properties
- $fillable : array<string|int, string>
- The attributes that are mass assignable.
Methods
- __construct() : void
- Create a new Role model instance.
Properties
$fillable
The attributes that are mass assignable.
protected
array<string|int, string>
$fillable
= ['id', 'role']
Methods
__construct()
Create a new Role model instance.
public
__construct() : void
Sets the table name from configuration constants.