1
0
Fork 0

Adding app/Models/Admin.php

This commit is contained in:
Henrik Hautakoski 2021-12-31 16:55:56 +01:00
parent 65beeb1487
commit 661d1442e7

31
app/Models/Admin.php Normal file
View file

@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Admin extends Authenticatable
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var string[]
*/
protected $fillable = [
'username',
'password'
];
/**
* The attributes that should be hidden for serialization.
*
* @var array
*/
protected $hidden = [
'password',
'remember_token',
];
}