Documentation

ClassName extends Model
in package
Uses HasFactory, LogsActivity, Notifiable, PowerJoins, SoftDeletes

Table of Contents

table  = "snake_module_name__snake_plural_class_name"
Table name, as constant, used to avoid table name duplication across the source code base.
$casts  : array<string|int, string>
The attributes that should be casted
$fillable  : array<int, string>
The attributes that are mass assignable.
$table  : string
Table name
getActivitylogOptions()  : LogOptions
Specifies which model properties should be logged in the activy log
boot()  : void
newFactory()  : ClassNameFactory
Get the Factory Class

Constants

table

Table name, as constant, used to avoid table name duplication across the source code base.

public mixed table = "snake_module_name__snake_plural_class_name"
Tags
const

string

Properties

$casts

The attributes that should be casted

protected array<string|int, string> $casts = ['status' => \Athomos\Bennu\Modules\ModuleName\Enums\ClassNameStatus::class]

$fillable

The attributes that are mass assignable.

protected array<int, string> $fillable = []

$table

Table name

protected string $table = self::table

Methods

getActivitylogOptions()

Specifies which model properties should be logged in the activy log

public getActivitylogOptions() : LogOptions
Tags
todo

Remove or specialize

Return values
LogOptions

boot()

protected static boot() : void
Return values
void

Search results