From 30230b3544a28e783b4d6504ede4e86a3278ab4d Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 25 May 2015 13:22:08 +0200 Subject: Fixed bug in models without auto_increment column --- src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php | 1 + 1 file changed, 1 insertion(+) (limited to 'src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php') diff --git a/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php b/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php index 803d7e8..e0c856a 100644 --- a/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php +++ b/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php @@ -28,6 +28,7 @@ class PasswordReminder extends Model { protected $hidden = ['token']; protected $fillable = ['userEmail', 'token', 'valid_till']; protected $primaryKey = 'token'; + public $incrementing = false; public static function boot() { parent::boot(); -- cgit v1.2.3