Node
extends Model
in package
Mohsin\Rest\Models\Node
Tags
Table of Contents
- $created_at : Carbon|null
- $extras : mixed
- $id : int
- $is_disabled : int
- $orphaned : bool
- $owner : string
- $path : string
- $table : string
- $updated_at : Carbon|null
- $dates : array<string|int, mixed>
- $guarded : array<string|int, mixed>
- $jsonable : array<string|int, mixed>
- addExtra() : mixed
- all() :
- disable() : mixed
- enable() : mixed
- get() :
- newModelQuery() :
- newQuery() :
- query() :
- removeExtra() : mixed
- whereCreatedAt() :
- whereExtras() :
- whereId() :
- whereIsDisabled() :
- whereOwner() :
- wherePath() :
- whereUpdatedAt() :
Properties
$created_at
public
Carbon|null
$created_at
$extras
public
mixed
$extras
$id
public
int
$id
$is_disabled
public
int
$is_disabled
$orphaned
public
bool
$orphaned
= false
If true, node exists in the database but no provider exists.
$owner
public
string
$owner
$path
public
string
$path
$table
public
string
$table
= 'mohsin_rest_nodes'
The database table used by the model.
$updated_at
public
Carbon|null
$updated_at
$dates
protected
array<string|int, mixed>
$dates
= ['created_at', 'updated_at']
Attributes to be cast to Argon (Carbon) instances
$guarded
protected
array<string|int, mixed>
$guarded
= []
Guarded fields
$jsonable
protected
array<string|int, mixed>
$jsonable
= ['extras']
Jsonable fields
Methods
addExtra()
public
addExtra(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed
Return values
mixed —all()
public
static all(mixed $columns) :
Parameters
- $columns : mixed
Return values
—disable()
public
disable() : mixed
Return values
mixed —enable()
public
enable() : mixed
Return values
mixed —get()
public
static get(mixed $columns) :
Parameters
- $columns : mixed
Return values
—newModelQuery()
public
static newModelQuery() :
Return values
—newQuery()
public
static newQuery() :
Return values
—query()
public
static query() :
Return values
—removeExtra()
public
removeExtra(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —whereCreatedAt()
public
static whereCreatedAt(mixed $value) :
Parameters
- $value : mixed
Return values
—whereExtras()
public
static whereExtras(mixed $value) :
Parameters
- $value : mixed
Return values
—whereId()
public
static whereId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereIsDisabled()
public
static whereIsDisabled(mixed $value) :
Parameters
- $value : mixed
Return values
—whereOwner()
public
static whereOwner(mixed $value) :
Parameters
- $value : mixed
Return values
—wherePath()
public
static wherePath(mixed $value) :
Parameters
- $value : mixed
Return values
—whereUpdatedAt()
public
static whereUpdatedAt(mixed $value) :
Parameters
- $value : mixed