From a03f243ca5123e63add03a007c446e1316f03d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Sun, 21 Oct 2018 01:21:34 +0200 Subject: [PATCH] Fixes logging in with access token (#1605) Seems the created_at column has no default value. This was always the case, at least that's what I can tell from a clean install and no migrations changing that default value. ``` $table->timestamp('created_at'); ``` --- src/Http/AccessToken.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Http/AccessToken.php b/src/Http/AccessToken.php index f3d573710..62b619d97 100644 --- a/src/Http/AccessToken.php +++ b/src/Http/AccessToken.php @@ -48,6 +48,7 @@ class AccessToken extends AbstractModel $token->token = str_random(40); $token->user_id = $userId; + $token->created_at = Carbon::now(); $token->last_activity_at = Carbon::now(); $token->lifetime_seconds = $lifetime;