I'm starting in the Laravel Framework and I'm having some problems with installing on Linux. I made the installation by composer using the command php composer.phar global require "laravel / installer" , set the $ PATH path export PATH="$ PATH: $ HOME / .config / composer / vendor / bin " and I ran the laravel new blog command that after running shows the text" Crafting application ... sh: 1: composer: not found Application ready! Build something amazing. "When you run the command php artisan serve it shows in the browser the" Whoops, looks like something went wrong. "
After that I tried to create the project with the php composer.phar create-project --prefer-dist laravel / laravel blog command, I started the server and it loaded into the browser without error .
How do I create a project using the 'laravel new proj' command so that there is no error in creating the project and when starting the server?
** I'm using php 7.