You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
421 B
29 lines
421 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace authkit2\Models;
|
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
|
|
/**
|
|
* Sample user model compatible with authkit
|
|
*/
|
|
class User extends Authenticatable
|
|
{
|
|
/** @var string[] */
|
|
protected $fillable = [
|
|
'name',
|
|
'email'
|
|
];
|
|
|
|
/** @var string[] */
|
|
protected $hidden = [
|
|
'remember_token'
|
|
];
|
|
|
|
public function getAuthIdentifierName()
|
|
{
|
|
return 'authkit_id';
|
|
}
|
|
}
|
|
|