商户后台

This commit is contained in:
liu
2026-06-17 12:41:49 +08:00
parent 845bea4b81
commit f63a7db58f
46 changed files with 2215 additions and 43 deletions
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model;
class MerchantCategoryModel extends Model
{
protected $table = 'merchant_categories';
protected $table = 'platform_categories';
protected $fillable = [
'name',
@@ -3,6 +3,7 @@
namespace Modules\Merchant\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class OrderPaymentModel extends Model
{
@@ -30,4 +31,9 @@ class OrderPaymentModel extends Model
'paid_at' => 'datetime',
'refund_at' => 'datetime',
];
public function order(): BelongsTo
{
return $this->belongsTo(OrderModel::class, 'order_id', 'id');
}
}