NIM_E31222351/app/Models/User.php

31 lines
568 B
PHP

<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class User extends Authenticatable
{
use HasFactory, Notifiable;
protected $table = 'penggunas';
protected $fillable = [
'nama',
'email',
'password',
'tipe_pengguna'
];
protected $hidden = [
'password',
'remember_token',
];
protected $casts = [
'email_verified_at' => 'datetime',
];
}