Captive Portal - Hotspot Wifi
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

79 rindas
1.2 KiB

  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Foundation\Auth\User as Authenticatable;
  6. use Illuminate\Notifications\Notifiable;
  7. class UserAccount extends Model
  8. {
  9. use HasFactory, Notifiable;
  10. /**
  11. * The attributes that are mass assignable.
  12. *
  13. * @var array
  14. */
  15. protected $fillable = [
  16. 'name',
  17. 'tanggal_lahir',
  18. 'tempat_lahir',
  19. 'email',
  20. 'handphone',
  21. 'jenis_kelamin',
  22. 'agama',
  23. 'password',
  24. ];
  25. /**
  26. * The attributes that should be hidden for arrays.
  27. *
  28. * @var array
  29. */
  30. protected $hidden = [
  31. 'password',
  32. 'remember_token',
  33. ];
  34. /**
  35. * The attributes that should be cast to native types.
  36. *
  37. * @var array
  38. */
  39. protected $casts = [
  40. 'email_verified_at' => 'datetime',
  41. ];
  42. public function Authenticationotp()
  43. {
  44. return $this->belongsTo(AuthenticationOtp::class);
  45. }
  46. /**
  47. * customer
  48. *
  49. * @return void
  50. */
  51. public function MacAddress()
  52. {
  53. return $this->belongsTo(accessLogs::class);
  54. }
  55. }