| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Foundation\Auth\User as Authenticatable;
- use Illuminate\Notifications\Notifiable;
- use Laravel\Sanctum\HasApiTokens;
- use Illuminate\Support\Facades\Hash;
- class User extends Authenticatable
- {
- use HasApiTokens, HasFactory, Notifiable;
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'usuarios';
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public $timestamps = false;
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected $primaryKey = 'idUsuario';
- /**
- * The "type" of the primary key ID.
- *
- * @var string
- */
- protected $keyType = 'string';
- /**
- * Indicates if the IDs are auto-incrementing.
- *
- * @var bool
- */
- public $incrementing = false;
- protected $fillable = [
- 'idEscuela',
- 'estatus',
- 'idUsuario',
- 'tipoUsuario',
- 'primerNombre',
- 'segundoNombre',
- 'apellidoPaterno',
- 'apellidoMaterno',
- 'alias',
- 'contrasenaHash',
- 'correo',
- 'grado',
- ];
- /**
- * The attributes that should be hidden for serialization.
- *
- * @var array<int, string>
- */
- protected $hidden = [
- 'contrasenaHash',
- ];
- }
|