*/ protected $fillable = [ 'name', 'email', 'password', 'customer_id', // if this is filled, then this user is a customer 'employee_id', // if this is filled, then this user is an employee // if both are filled, then this user is both a customer and an employee ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password', 'remember_token', 'created_at', 'updated_at', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', ]; }