TravelsStay extends Model Uses HasFactory, SoftDeletes
Table of Contents
- $appends : mixed
- Attributes included when receiving model instance.
- $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.
- getOccupiedStockAttribute() : mixed
- roomType() : mixed
- Get the modules of the item.
- travel() : mixed
- Get the modules of the item.
- boot() : mixed
Properties
$appends
Attributes included when receiving model instance.
protected
mixed
$appends
= ['occupiedStock']
$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
= ['room_types_id', 'start_date', 'end_date', 'price', 'active', 'stock']
$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
= ['room_types_id', 'travel_id', 'created_at', 'updated_at', 'deleted_at']
$table
The table associated with the model.
protected
string
$table
= "travels_stays"
$with
The extra attributes that should be showed for arrays.
protected
array<string|int, mixed>
$with
= ['roomType']
Methods
getOccupiedStockAttribute()
public
getOccupiedStockAttribute() : mixed
Return values
mixed —roomType()
Get the modules of the item.
public
roomType() : mixed
Return values
mixed —travel()
Get the modules of the item.
public
travel() : mixed
Return values
mixed —boot()
protected
static boot() : mixed