Files
safekat/ci4/app/Models/UserModel.php
2024-05-03 01:09:25 +02:00

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
];
}
}