Documentation

ContactUser extends Model Uses HasFactory

Table of Contents

$casts  : array<string|int, mixed>
The attributes that should be cast.
$fillable  : array<string|int, mixed>
The attributes that are mass assignable.
$hidden  : array<string|int, mixed>
The attributes excluded from the model's JSON form.
$table  : string
The table associated with the model.
user()  : BelongsTo
Get the customer which owns this booking.

Properties

$casts

The attributes that should be cast.

protected array<string|int, mixed> $casts = ['name' => 'string', 'company_name' => 'string', 'email' => 'string', 'phone' => 'string', 'message' => 'string']

$fillable

The attributes that are mass assignable.

protected array<string|int, mixed> $fillable = ['name', 'company_name', 'email', 'phone', 'message']

$hidden

The attributes excluded from the model's JSON form.

protected array<string|int, mixed> $hidden = ['updated_at', 'created_at', 'deleted_at']

$table

The table associated with the model.

protected string $table = "contact_users_data"

Methods

user()

Get the customer which owns this booking.

public user() : BelongsTo
Return values
BelongsTo

Search results