Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace AppModels;
- use IlluminateDatabaseEloquentModel;
- class User extends Model {
- const CREATED_AT = 'createTime';
- const UPDATED_AT = 'updateTime';
- public $timestamps = true;
- protected $table = 'user';
- protected $guarded = ['password','login','id','activationEmail'];
- protected $hidden = [ 'password' ];
- protected function getDateFormat()
- {
- return 'U';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement