diff options
Diffstat (limited to 'src/CamilStaps/BotleaguesApi/UserToken.php')
-rw-r--r-- | src/CamilStaps/BotleaguesApi/UserToken.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/CamilStaps/BotleaguesApi/UserToken.php b/src/CamilStaps/BotleaguesApi/UserToken.php deleted file mode 100644 index 9909f6a..0000000 --- a/src/CamilStaps/BotleaguesApi/UserToken.php +++ /dev/null @@ -1,21 +0,0 @@ -<?php -namespace CamilStaps\BotleaguesApi; - -use Illuminate\Database\Eloquent\Model; - -class UserToken extends Model { - - protected $table = 'user_tokens'; - protected $hidden = ['token']; - protected $fillable = ['userId', 'token', 'valid_till']; - - /** - * Override the parent's save() function to automatically update the valid_till timestamp - */ - public function save(array $options = array()) { - $this->valid_till = date("Y-m-d H:i:s", time() + 3600); - - return parent::save($options); - } - -}
\ No newline at end of file |