25 lines
596 B
PHP
25 lines
596 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
|
|
class Anggota extends Authenticatable
|
|
{
|
|
use HasFactory, Notifiable;
|
|
|
|
protected $guard = 'anggota'; // Guard yang digunakan untuk model ini
|
|
|
|
protected $table = 'admin'; // Nama tabel yang digunakan untuk model Anggota
|
|
|
|
protected $fillable = [
|
|
'nama_anggota', 'username', 'email', 'alamat', 'uid', 'password',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'password', 'remember_token',
|
|
];
|
|
}
|