本文介绍了在浏览器上运行config clear的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在在线的应用程序上运行php artisan config:clear,唯一的问题是我只有FTP凭据和数据库,而没有在终端上运行的SSH,如何在没有终端的情况下运行此命令?已经尝试在论坛上查找内容,但未找到与我的问题有关的任何问题,但未找到答案.

I need to run php artisan config:clear on my app that is online, the only issue is that I have only the FTP credentials and DB, and not the SSH to run on the terminal, how can I run this command without the terminal?Already tried looking on the forum and didn't found any question related with my issue but didn't found any answer for it.

推荐答案

您可以从PHP代码块中的任何位置调用artisan命令.

You can call the artisan command from anywhere in your PHP code block.

$exitCode = Artisan::call('config:clear');

更多信息可在此处找到 https://laravel.com/docs /5.4/artisan#programmatically-executing-commands

More info can be found here https://laravel.com/docs/5.4/artisan#programmatically-executing-commands

这篇关于在浏览器上运行config clear的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 21:01