Employee.php 731 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Shop\Employees;
  3. use Illuminate\Database\Eloquent\SoftDeletes;
  4. use Illuminate\Notifications\Notifiable;
  5. use Illuminate\Foundation\Auth\User as Authenticatable;
  6. use Laratrust\Traits\LaratrustUserTrait;
  7. class Employee extends Authenticatable
  8. {
  9. use Notifiable, SoftDeletes, LaratrustUserTrait;
  10. /**
  11. * The attributes that are mass assignable.
  12. *
  13. * @var array
  14. */
  15. protected $fillable = [
  16. 'name',
  17. 'email',
  18. 'password',
  19. 'status'
  20. ];
  21. /**
  22. * The attributes that should be hidden for arrays.
  23. *
  24. * @var array
  25. */
  26. protected $hidden = [
  27. 'password',
  28. 'remember_token',
  29. ];
  30. protected $dates = ['deleted_at'];
  31. }