Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 23, 2018 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/5e775b737887393a6f38619907816c7c to your computer and use it in GitHub Desktop.
Save uno-de-piera/5e775b737887393a6f38619907816c7c to your computer and use it in GitHub Desktop.
<?php
namespace App\Models;
use CodeIgniter\Model;
/**
* Class PostModel
* @package App\Models
*/
class PostModel extends Model
{
/**
* @var string
*/
protected $table = 'posts';
/**
* @var array
*/
protected $allowedFields = ['user_id', 'title', 'body'];
/**
* @var bool
*/
protected $useTimestamps = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment