* [ * 1 => [ * 'label' => 'xxx', * 'value' => 1, * ], * ] * */ public static function getFirstPageListTypeMap() { return collect(config('common.common.firstPageListType'))->keyBy('value')->toArray(); } /** * 获取小程序类型映射 * @return mixed[] *
* [
* 1 => [
* 'label' => 'xxx',
* 'value' => 1,
* ],
* ]
*
*/
public static function getMiniprogramTypeMap() {
return collect(config('common.common.miniprogramType'))->keyBy('value')->toArray();
}
/**
* 获取支付类型映射
* @return mixed[]
*
* [
* 1 => [
* 'label' => 'xxx',
* 'value' => 1,
* ],
* ]
*
*/
public static function getPayTypeMap() {
return collect(config('common.common.payType'))->keyBy('value')->toArray();
}
}