<?php namespace Appmodels; use CodeIgniterModel; class Users_model extends Model { protected $table = 'users'; protected $primaryKey = 'id'; protected $allowedFields = ['first_name', 'last_name', 'email', 'password']; }