暂时只支持微信公众号支付
composer require "jose-chan/payment"
php artisan migrate --path=vendor/jose-chan/payment/database/migrations
- 先更新Composer自动加载器
composer dump-autoload
- 在DatabaseSeeder中引入Seeder类
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call([
PaymentTypeConfigSeeder::class,
PaymentTypeSeeder::class,
MenuSeeder::class,
]);
}
- 执行填充数据库
php artisan db:seed
config/app.php
return [
//……其他配置项省略
'providers' => [
//……其他配置项省略
/**
* laravel-admin providers
*/
\JoseChan\Payment\PaymentServiceProvider::class,
]
]
config/admin.php
return [
//……其他配置项省略
/*
* Settings for extensions.
*/
'extensions' => [
"payment"=>[
"enable" => true,
]
],
];
return [
//……其他配置项省略
'providers' => [
//……其他配置项省略
/**
* laravel-admin providers
*/
\JoseChan\Payment\ApiServiceProvider::class,
]
]