Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
Users | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
<?php namespace App\Models; | |
use Framework\MVC\Model; | |
class Users extends Model | |
{ | |
protected $table = 'Users'; | |
protected $allowedColumns = [ | |
'email', | |
'name', | |
]; | |
protected $validationRules = [ | |
'email' => 'email', | |
'name' => 'minLength:5|maxLength:32', | |
]; | |
protected $useDatetime = true; | |
} |