Documentation

TravelCategory extends Model Uses HasFactory, SoftDeletes

Table of Contents

$appends  : mixed
$casts  : mixed
$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.
agency()  : mixed
Get the agency of the item.
childTravelCategories()  : mixed
Get child travel categories of the item.
contact()  : mixed
Get the contact person of the travel category.
getParentUuidAttribute()  : mixed
Get parent uuid.
parentTravelCategory()  : mixed
Get the parent travel category of the item.
picture()  : mixed
Get the pictures of the item.
pictures()  : mixed
Get the pictures of the item.
travels()  : mixed
Get travels of the item.
boot()  : mixed

Properties

$casts

protected mixed $casts = ['card' => 'array', 'description_images' => 'array']

$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 = ['parent_travel_category_id', 'description', 'description_images', 'title', 'teaser', 'summary', 'public_visibility', 'custom_order', 'card', 'customer_id']

$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 = ['pivot', 'agency_id', 'created_at', 'updated_at', 'deleted_at']

$table

The table associated with the model.

protected string $table = "travel_categories"

$with

The extra attributes that should be showed for arrays.

protected array<string|int, mixed> $with = ['picture']

Methods

agency()

Get the agency of the item.

public agency() : mixed
Return values
mixed

childTravelCategories()

Get child travel categories of the item.

public childTravelCategories() : mixed
Return values
mixed

contact()

Get the contact person of the travel category.

public contact() : mixed
Return values
mixed

getParentUuidAttribute()

Get parent uuid.

public getParentUuidAttribute() : mixed
Return values
mixed

parentTravelCategory()

Get the parent travel category of the item.

public parentTravelCategory() : mixed
Return values
mixed

picture()

Get the pictures of the item.

public picture() : mixed
Return values
mixed

pictures()

Get the pictures of the item.

public pictures() : mixed
Return values
mixed

travels()

Get travels of the item.

public travels() : mixed
Return values
mixed

Search results