Module extends Model Uses HasFactory, SoftDeletes
Table of Contents
- GROUP_ADMIN = 'admin'
- GROUP_AGENCY = 'agency'
- MODULE_AGENCIES = 4
- MODULE_BOOKINGS = 6
- MODULE_CUSTOMERS = 5
- MODULE_GROUP_ADMIN = 'admin'
- MODULE_GROUP_AGENCY = 'agency'
- MODULE_INVOICING = 10
- MODULE_LICENSES = 3
- MODULE_MODULES = 2
- MODULE_PREDEFINEDTEXTS = 11
- MODULE_TOUROPERATORS = 8
- MODULE_TRAVELS = 7
- MODULE_USERS = 1
- MODULE_VEHICLES = 9
- MODULE_VEHICLESEXTRAS = 12
- PERMISSION_DELETE = 'delete'
- PERMISSION_READ = 'read'
- PERMISSION_WRITE = 'write'
- $dates : array<string|int, mixed>
- Column for soft deletes
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable.
- $guarded : array<string|int, mixed>
- The attributes that are not mass assignable.
- $hidden : array<string|int, mixed>
- The attributes that should be hidden for arrays.
- $table : string
- The table associated with the model.
- $with : array<string|int, mixed>
- The extra attributes that should be showed for arrays.
- user_types() : mixed
- Get the users of the item.
- users() : mixed
- Get the users of the item.
Constants
GROUP_ADMIN
public
mixed
GROUP_ADMIN
= 'admin'
GROUP_AGENCY
public
mixed
GROUP_AGENCY
= 'agency'
MODULE_AGENCIES
public
mixed
MODULE_AGENCIES
= 4
MODULE_BOOKINGS
public
mixed
MODULE_BOOKINGS
= 6
MODULE_CUSTOMERS
public
mixed
MODULE_CUSTOMERS
= 5
MODULE_GROUP_ADMIN
public
mixed
MODULE_GROUP_ADMIN
= 'admin'
MODULE_GROUP_AGENCY
public
mixed
MODULE_GROUP_AGENCY
= 'agency'
MODULE_INVOICING
public
mixed
MODULE_INVOICING
= 10
MODULE_LICENSES
public
mixed
MODULE_LICENSES
= 3
MODULE_MODULES
public
mixed
MODULE_MODULES
= 2
MODULE_PREDEFINEDTEXTS
public
mixed
MODULE_PREDEFINEDTEXTS
= 11
MODULE_TOUROPERATORS
public
mixed
MODULE_TOUROPERATORS
= 8
MODULE_TRAVELS
public
mixed
MODULE_TRAVELS
= 7
MODULE_USERS
public
mixed
MODULE_USERS
= 1
MODULE_VEHICLES
public
mixed
MODULE_VEHICLES
= 9
MODULE_VEHICLESEXTRAS
public
mixed
MODULE_VEHICLESEXTRAS
= 12
PERMISSION_DELETE
public
mixed
PERMISSION_DELETE
= 'delete'
PERMISSION_READ
public
mixed
PERMISSION_READ
= 'read'
PERMISSION_WRITE
public
mixed
PERMISSION_WRITE
= 'write'
Properties
$dates
Column for soft deletes
protected
array<string|int, mixed>
$dates
= ['deleted_at']
$fillable
The attributes that are mass assignable.
protected
array<string|int, mixed>
$fillable
= ['name', 'description', 'code', 'group', 'order']
$guarded
The attributes that are not mass assignable.
protected
array<string|int, mixed>
$guarded
= ['id', 'created_at', 'updated_at', 'deleted_at']
$hidden
The attributes that should be hidden for arrays.
protected
array<string|int, mixed>
$hidden
= ['hidden', 'pivot', 'created_at', 'updated_at', 'deleted_at']
$table
The table associated with the model.
protected
string
$table
= 'modules'
$with
The extra attributes that should be showed for arrays.
protected
array<string|int, mixed>
$with
= []
Methods
user_types()
Get the users of the item.
public
user_types() : mixed
Return values
mixed —users()
Get the users of the item.
public
users() : mixed