支付宝记账本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
456 B

<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
class Merchant extends Model
{
use HasDateTimeFormatter;
public static function getAllMerchant(): array
{
$merchants = self::all();
$list = [];
foreach ($merchants as $merchant) {
$list[$merchant->mch_no] = "[$merchant->mch_no]$merchant->mch_name";
}
return $list;
}
}