Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在安装带有Clockwork的 laravel 设置。而且我有一个工匠命令需要很长时间才能运行,因此发条会消耗太多内存。我仍然需要那个扩展。仅运行命令时如何禁用它?
你可以在配置文件clockwork.php中覆盖它
运行 php artisan vendor:publish --provider='Clockwork\Support\Laravel\ClockworkServiceProvider'
然后将您的条件应用于“启用”