mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
22 lines
406 B
PHP
22 lines
406 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Shield\Models\UserModel as ShieldUserModel;
|
|
|
|
class UserModel extends ShieldUserModel
|
|
{
|
|
protected function initialize(): void
|
|
{
|
|
parent::initialize();
|
|
|
|
$this->allowedFields = [
|
|
...$this->allowedFields,
|
|
'first_name', // Añadido
|
|
'last_name', // Añadido
|
|
];
|
|
}
|
|
}
|