Airport Guide Documentation

Module extends Model
in package
uses Sortable, HasFactory

Module Model

This model manages system modules and their configurations for the security system. It stores module information, hierarchy, permissions, and access control data for managing system functionality and user permissions.

Table of Contents

Properties

$fillable  : array<string|int, string>
The attributes that are mass assignable.

Methods

__construct()  : void
Create a new Module model instance.
permissions()  : HasMany
Get the permissions associated with this module.

Properties

$fillable

The attributes that are mass assignable.

protected array<string|int, string> $fillable = ['parent_mod_id', 'module_name', 'module_desc', 'module_file', 'display_order', 'section_name', 'module_type', 'created_by', 'updated_by', 'created_at', 'updated_at']

Methods

__construct()

Create a new Module model instance.

public __construct() : void

Sets the table name from configuration constants.

permissions()

Get the permissions associated with this module.

public permissions() : HasMany

This function is used to check permission for users. Establishes a one-to-many relationship with the Permission model.

Return values
HasMany

        
On this page

Search results