Producer
class Producer extends User
Traits
Properties
| protected array | $casts | The attributes that should be cast to native types. | |
| protected array | $appends | The accessors to append to the model's array form. | |
| $hidden | The attributes that should be hidden for arrays. |
Methods
string
getTypeAttribute()
Get the user type.
static void
boot()
The "booting" method of the model.
setPasswordAttribute(string $value)
Set the users password.
void
setUsernameAttribute(string $value)
Set the username.
products()
Get the producers products.
Builder
qualities()
Query the qualities.
State
state()
Get the users state.
Details
in CanDeliver at line 10
supplier()
Get the models image.
in HasBankAccounts at line 10
bankAccounts()
Get the users bank accounts.
in HasCompany at line 10
company()
Get the company.
in HasCompany at line 20
string
getCompanyNameAttribute()
Get the company name.
in HasContacts at line 10
contacts()
Get the contacts.
in Verifiable at line 17
void
verify()
Verify the user.
in Verifiable at line 30
void
requestVerification()
Request to be verified.
in Verifiable at line 40
bool
isVerified()
Check if the user has been verified.
in Verifiable at line 51
Builder
scopeVerified(Builder $query)
Scope a query to only include verified users.
at line 57
string
getTypeAttribute()
Get the user type.
at line 67
static protected void
boot()
The "booting" method of the model.
at line 81
setPasswordAttribute(string $value)
Set the users password.
at line 92
void
setUsernameAttribute(string $value)
Set the username.
at line 100
products()
Get the producers products.
at line 110
Builder
qualities()
Query the qualities.
at line 120
State
state()
Get the users state.