-
-
Save uno-de-piera/5e775b737887393a6f38619907816c7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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