Agency extends Model Uses HasFactory, SoftDeletes
Table of Contents
- $appends : array<string|int, mixed>
- 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.
- accessTokens() : mixed
- Get the customers of the item.
- accounts() : mixed
- Get the customers of the item.
- agencyIntegration() : HasMany
- bookings() : mixed
- Get the customers of the item.
- canRead() : mixed
- Confirm read permissions
- cashbookEntries() : mixed
- Get the customers of the item.
- customers() : mixed
- Get the customers of the item.
- damageCategories() : mixed
- Get the vehicles of the item.
- damages() : mixed
- Get the vehicles of the item.
- getlicenseEnabledAttribute() : bool
- Return whether the user likes the news.
- getRedsysKeysAttribute() : string
- Get the user redsys keys
- getStripeKeyAttribute() : string
- Get the user stripe key
- isEnabled() : bool
- Check if agency is enabled
- licenses() : mixed
- Get the modules of the item.
- offices() : mixed
- Get the modules of the item.
- paymentMethods() : mixed
- Get the stripe key of the item.
- predefinedTexts() : mixed
- Get the modules of the item.
- saveInvoiceFooter() : null
- saveLogo() : null
- supplier() : HasMany
- tourOperators() : mixed
- Get the customers of the item.
- travelCategories() : mixed
- Get the Travel Categories of the item.
- travels() : mixed
- Get the customers of the item.
- users() : mixed
- Get the modules of the item.
- vehicleExtra() : HasMany
- vehicleLocations() : mixed
- Get the VehicleLocations of the item.
- vehicleOffices() : mixed
- Get the VehicleRentalCompanies of the item.
- vehicleRentalCompanies() : mixed
- Get the VehicleRentalCompanies of the item.
- vehicles() : mixed
- Get the vehicles of the item.
Properties
$appends
The accessors to append to the model's array form.
protected
array<string|int, mixed>
$appends
= ['license_enabled']
$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
= ['name', 'contact', 'email', 'phone', 'address', 'zipcode', 'town', 'country', 'vat_number', 'iban', 'default_serie_invoices', 'emails_footer', 'invoice_signature']
$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', 'created_at', 'updated_at', 'deleted_at']
$table
The table associated with the model.
protected
string
$table
= "agencies"
$with
The extra attributes that should be showed for arrays.
protected
array<string|int, mixed>
$with
= []
Methods
accessTokens()
Get the customers of the item.
public
accessTokens() : mixed
Return values
mixed —accounts()
Get the customers of the item.
public
accounts() : mixed
Return values
mixed —agencyIntegration()
public
agencyIntegration() : HasMany
Return values
HasMany —bookings()
Get the customers of the item.
public
bookings() : mixed
Return values
mixed —canRead()
Confirm read permissions
public
canRead(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —cashbookEntries()
Get the customers of the item.
public
cashbookEntries() : mixed
Return values
mixed —customers()
Get the customers of the item.
public
customers() : mixed
Return values
mixed —damageCategories()
Get the vehicles of the item.
public
damageCategories() : mixed
Return values
mixed —damages()
Get the vehicles of the item.
public
damages() : mixed
Return values
mixed —getlicenseEnabledAttribute()
Return whether the user likes the news.
public
getlicenseEnabledAttribute() : bool
Return values
bool —getRedsysKeysAttribute()
Get the user redsys keys
public
getRedsysKeysAttribute() : string
Return values
string —getStripeKeyAttribute()
Get the user stripe key
public
getStripeKeyAttribute() : string
Return values
string —isEnabled()
Check if agency is enabled
public
isEnabled() : bool
Return values
bool —licenses()
Get the modules of the item.
public
licenses() : mixed
Return values
mixed —offices()
Get the modules of the item.
public
offices() : mixed
Return values
mixed —paymentMethods()
Get the stripe key of the item.
public
paymentMethods() : mixed
Return values
mixed —predefinedTexts()
Get the modules of the item.
public
predefinedTexts() : mixed
Return values
mixed —saveInvoiceFooter()
public
saveInvoiceFooter([File $file = null ][, mixed $type = 'invoice_footer' ]) : null
Parameters
- $file : File = null
-
- The file to upload
- $type : mixed = 'invoice_footer'
Tags
Return values
null —saveLogo()
public
saveLogo([File $file = null ]) : null
Parameters
- $file : File = null
-
- The file to upload
Tags
Return values
null —supplier()
public
supplier() : HasMany
Return values
HasMany —tourOperators()
Get the customers of the item.
public
tourOperators() : mixed
Return values
mixed —travelCategories()
Get the Travel Categories of the item.
public
travelCategories() : mixed
Return values
mixed —travels()
Get the customers of the item.
public
travels() : mixed
Return values
mixed —users()
Get the modules of the item.
public
users() : mixed
Return values
mixed —vehicleExtra()
public
vehicleExtra() : HasMany
Return values
HasMany —vehicleLocations()
Get the VehicleLocations of the item.
public
vehicleLocations() : mixed
Return values
mixed —vehicleOffices()
Get the VehicleRentalCompanies of the item.
public
vehicleOffices() : mixed
Return values
mixed —vehicleRentalCompanies()
Get the VehicleRentalCompanies of the item.
public
vehicleRentalCompanies() : mixed
Return values
mixed —vehicles()
Get the vehicles of the item.
public
vehicles() : mixed