29 lines
558 B
PHP
29 lines
558 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
|
|
class Teknisi extends Authenticatable
|
|
{
|
|
use HasFactory, Notifiable;
|
|
|
|
protected $table = 'teknisi'; // Nama tabel di database
|
|
|
|
protected $fillable = [
|
|
'nip', 'nama', 'password',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'password',
|
|
];
|
|
|
|
// Gunakan NIP sebagai username
|
|
public function getAuthIdentifierName()
|
|
{
|
|
return 'nip';
|
|
}
|
|
}
|