搭建轻舟一期门户、后台和统一登录。

让分类、会员和示例工具共用同一账号,本地即可跑通登录与授权。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Dev
2026-11-09 16:46:35 +08:00
co-authored by Cursor
commit 60daff2365
173 changed files with 21585 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class OrderItem extends Model
{
protected $fillable = ['order_id', 'plan_id', 'title', 'amount_cents'];
protected function casts(): array
{
return ['amount_cents' => 'integer'];
}
public function order(): BelongsTo
{
return $this->belongsTo(Order::class);
}
public function plan(): BelongsTo
{
return $this->belongsTo(Plan::class);
}
}