Documentation

Domain extends AbstractBaseCloudModel
in package
Uses HasFactory, Notifiable, PowerJoins, SoftDeletes

Table of Contents

table  = "cloud_os_identity__domains"
Table name, as constant, used to avoid table name duplication across the source code base.
$activityLogName  : string
$error_at  : Carbon
$id  : int
$openStackActivityLogName  : string
$attributes  : array<string|int, mixed>
Default attributes
$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
belongsToDefaultDomain()  : bool
Domain does not belong to a domain. Return false to avoid any disruptive opetation
getActivitylogOptions()  : LogOptions
Specifies which model properties should be logged in the activy log
groups()  : HasMany
isOwner()  : bool
isReadyToInsert()  : bool
Check if the model is consistent to be updated.
isReadyToUpdate()  : bool
Check if the model is consistent to be inserted and created
projects()  : HasMany
retrieveDomain()  : Domain
This function will traverse all model relation up to the Domain
users()  : HasMany
_isReadyToInsert()  : bool
Check if the model is consistent to be updated.
_isReadyToUpdate()  : bool
Check if the model is consistent to be inserted and created
boot()  : void
Boot the model and register the events
newFactory()  : DomainFactory
Get the Factory Class

Constants

table

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

public mixed table = "cloud_os_identity__domains"
Tags
const

string

Properties

$openStackActivityLogName

public static string $openStackActivityLogName = 'openstack'

$attributes

Default attributes

protected array<string|int, mixed> $attributes = ['status' => \Athomos\Bennu\Modules\Cloud\OpenStack\Identity\Enums\DomainStatus::Created]

$casts

The attributes that should be casted

protected array<string|int, string> $casts = ['status' => \Athomos\Bennu\Modules\Cloud\OpenStack\Identity\Enums\DomainStatus::class, 'links' => 'array']

$fillable

The attributes that are mass assignable.

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

$table

Table name

protected string $table = self::table

Methods

belongsToDefaultDomain()

Domain does not belong to a domain. Return false to avoid any disruptive opetation

public belongsToDefaultDomain() : bool
Return values
bool

getActivitylogOptions()

Specifies which model properties should be logged in the activy log

public getActivitylogOptions() : LogOptions
Return values
LogOptions

groups()

public groups() : HasMany
Return values
HasMany

isReadyToInsert()

Check if the model is consistent to be updated.

public isReadyToInsert() : bool
Tags
throws
ReporterException
Return values
bool

true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception

isReadyToUpdate()

Check if the model is consistent to be inserted and created

public isReadyToUpdate() : bool
Tags
throws
ReporterException
Return values
bool

true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception

projects()

public projects() : HasMany
Return values
HasMany

users()

public users() : HasMany
Return values
HasMany

_isReadyToInsert()

Check if the model is consistent to be updated.

protected _isReadyToInsert() : bool
Return values
bool

true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception

_isReadyToUpdate()

Check if the model is consistent to be inserted and created

protected _isReadyToUpdate() : bool
Tags
throws
ReporterException
Return values
bool

true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception

boot()

Boot the model and register the events

protected static boot() : void
Return values
void

Search results