@Fenos, could you show here the content of your composer.json file?
Did you run the php artisan app:name command?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I created a fresh installation of laravel 5 and it come out with this kind of error:
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'A non-empty PSR-4 prefix must end with a namespace separator.' in /home/vagrant/laravel/vendor/composer/ClassLoader.php on line 219
InvalidArgumentException: A non-empty PSR-4 prefix must end with a namespace separator. in /home/vagrant/laravel/vendor/composer/ClassLoader.php on line 219
This kind of error come out when the composer.json under autoload section is not formatted on right way but it seem correctly any suggest?
@fenos, I just did and everything is working. I also did a php artisan app:name Test ... Please do a
composer selfupdate
I don't create project from homestead. Doing install from my local machine within the directory shared with Homestead
Please or to participate in this conversation.