Could not open input file: artisan code example

Example 1: Could not open input file: composer

composer install

Example 2: Could not open input file: composer.phar

$ composer update friendsofsymfony/elastica-bundle

Example 3: how fix the error could not open input file artisan in terminal host

ou need to first create Laravel project and if you already
have one you need to go to this project dir
using " cd command " in terminal for example cd myproject.

Now you will be able to run any artisan commands,
for example running php artisan will display you list of available commands.

Example 4: Could not open input file: artisan

//you have to call artisan from root directory
$ cd root/file/path

Tags:

Php Example