When trying to create a new laravel project, The following error appears on the CLI:
Could not open input file: artisan Script php artisan clear-c
Could not open input file: artisan
Script php artisan clear-c
I just needed to make artisan executable.
artisan
chmod +x artisan
...and it works without the php prefix then.