gpt4 book ai didi

laravel - 使用 Composer 命令将 Laravel 包播种到 Sqlite 以进行代码接收

转载 作者:行者123 更新时间:2023-12-01 16:26:05 24 4
gpt4 key购买 nike

我想通过在我的composer.json文件中创建一个命令来自动化我的包播种,但是每当我运行该命令时,我都会得到类“Namespace\Module\Classname”不存在。

这是我的composer.json 命令的样子:

"seedsqlite-cmd": [
"php artisan migrate --seed --database=codeception",
"php artisan migrate --bench='hsd/catalog' --database=codeception",
"php artisan migrate --bench='hsd/conversion' --database=codeception",
"php artisan migrate --bench='hsd/emailsubscription' --database=codeception",
"php artisan migrate --bench='hsd/html' --database=codeception",
"php artisan migrate --bench='hsd/maxmind' --database=codeception",
"php artisan migrate --bench='hsd/meta' --database=codeception",
"php artisan migrate --bench='hsd/mobile' --database=codeception",
"php artisan migrate --bench='hsd/postal' --database=codeception",
"php artisan migrate --bench='hsd/smartlander' --database=codeception",
"php artisan migrate --bench='hsd/sta' --database=codeception",
"php artisan migrate --bench='hsd/upsell' --database=codeception",
"php artisan db:seed --class='Hsd\\Catalog\\CatalogSeeder' --database='codeception'"
],

最佳答案

事实证明,您只需要删除基准值周围的单引号即可。我认为有人可能会利用这个。

关于laravel - 使用 Composer 命令将 Laravel 包播种到 Sqlite 以进行代码接收,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27727901/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com