I can run this php script from command line: php http://localhost/test/test.php but when i created this script using mvc controller action, such as in laravel/symfony: and tried to run it from cmd: php http://localhost/test/test
I got the following error: Could not open input file: http://localhost/test/test
how can i run this script from cmd?
Laravel has the specific structure to build script to run from command line.
Artisan console documentation here: https://laravel.com/docs/5.6/artisan