Customer extends Model Uses HasFactory, SoftDeletes
Table of Contents
- $appends : array<string|int, string>
- The accessors to append to the model's array form.
- $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.
- bookings() : mixed
- Get the bookings of the item.
- deletePictures() : true
- delete all images an delete previous
- getAgeAttribute() : int
- getAttachmentPath() : string
- Generate path to save attachment
- getUnder16Attribute() : bool
- qualification() : mixed
- Get the qualification of the item.
- risk() : mixed
- Get the risk of the item.
- savePicture() : null
- Save an image an delete previous
Properties
$appends
The accessors to append to the model's array form.
protected
array<string|int, string>
$appends
= ['age', 'under_16']
$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
= ['agency_id', 'customers_qualification_id', 'customers_risk_id', 'salutation', 'mail_saludation', 'title', 'name', 'lastname', 'name_in_passport', 'email', 'birthdate', 'place_of_birth', 'nationality', 'id_no', 'passport_no', 'tax_id', 'photo', 'free_text', 'phone_privat', 'phone_mobil', 'phone_business', 'fax', 'address', 'zipcode', 'town', 'country', 'more_info', 'web_url', 'language', 'allows_receive_emails']
$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
= ['agency_id', 'customers_qualification_id', 'customers_risk_id', 'created_at', 'updated_at', 'deleted_at']
$table
The table associated with the model.
protected
string
$table
= 'customers'
$with
The extra attributes that should be showed for arrays.
protected
array<string|int, mixed>
$with
= ['qualification', 'risk']
Methods
agency()
Get the agency of the item.
public
agency() : mixed
Return values
mixed —bookings()
Get the bookings of the item.
public
bookings() : mixed
Return values
mixed —deletePictures()
delete all images an delete previous
public
deletePictures() : true
Tags
Return values
true —getAgeAttribute()
public
getAgeAttribute() : int
Tags
Return values
int —getAttachmentPath()
Generate path to save attachment
public
getAttachmentPath() : string
Return values
string —getUnder16Attribute()
public
getUnder16Attribute() : bool
Tags
Return values
bool —qualification()
Get the qualification of the item.
public
qualification() : mixed
Return values
mixed —risk()
Get the risk of the item.
public
risk() : mixed
Return values
mixed —savePicture()
Save an image an delete previous
public
savePicture( $file) : null