rocket-a


git -C '/home/opc/rocketa.git' show c8c5ba6 -- app/Models/La/LoginToken.php

commit c8c5ba61b1fb4c40e219ffbcf4e593c54f7d4ac6
Author: Satoshi Ujihara <satoshi_ujihara@fivegate.jp>
Date:   Thu Dec 18 12:00:15 2025 +0900

    メディア会員登録フロー変更

diff --git a/app/Models/La/LoginToken.php b/app/Models/La/LoginToken.php
new file mode 100644
index 0000000..8269b36
--- /dev/null
+++ b/app/Models/La/LoginToken.php
@@ -0,0 +1,20 @@
+<?php
+namespace App\Models\La;
+
+use Illuminate\Database\Eloquent\Model;
+use Illuminate\Support\Carbon;
+
+class LoginToken extends Model
+{
+    protected $connection = 'mysql';
+
+    protected $primaryKey = 'id';
+
+    protected $fillable = ['user_id', 'site', 'token', 'expires_at'];
+    protected $dates = ['expires_at'];
+
+    public function isExpired()
+    {
+        return $this->expires_at->isPast();
+    }
+}
\ No newline at end of file

diff.txt · 最終更新: by root