I use Laravel 5.5 and I have Controller like this.
use Illuminate\Support\Facades\Artisan;
---------------------
public function index()
{
Artisan::call('config:cache');
}
but it not work correctly and show me this message in browser:
This site can’t be reached
The connection was reset.
Try:
Checking the connection
Checking the proxy the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESET
It already worked but it not work correctly now.
Note1: All commands in Artisan dose not work, for example migrate,seed,...
Note2: I install another laravl 5.5 script and test Artisan::call method and it work correctly but it dose not work correctly in my script.