love_php/app/Models/Server/MerchantBlacklist.php

23 lines
402 B
PHP
Raw Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Models\Server;
use Illuminate\Database\Eloquent\Model;
class MerchantBlacklist extends Model
{
protected $fillable = [];
protected $guarded = [];
public function user()
{
return $this->belongsTo(MerchantUser::class);
}
public function scopeType($query)
{
$type = request()->type;
return $query->where('type', $type);
}
}