TKK_E32211602_2/app/Models/Anggota.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',
];
}