Edited 25th March @ 01:11 am!!! :-( ... for new viewers:
I'm almost pulling my hair out. How is it possible that I can have Laravel Installer successfully and globally installed, yet in a terminal window ... "laravel: command not found" ???
OK - let me give you guys as much info as you might want/need ...
I've created a virtual host "laravel12" (root being /var/www/laravel12) and checked - Apache2 is serving it's "Index of /" blank page in a browser (Chrome).
I've already installed "composer global require laravel/installer" successfully.
I've cd'd in to "/var/www" in a terminal window and entered "laravel new example-app" as per Laravel's "Creating a Laravel Project" page.
The response I get in the terminal is : "laravel: command not found"
To give the full terminal output ...
richard@AsusAMD:/var/www/laravel12$ composer global require laravel/installer
Changed current directory to /home/richard/.config/composer
./composer.json has been updated
Running composer update laravel/installer
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
18 packages you are using are looking for funding.
Use the composer fund command to find out more!
No security vulnerability advisories found.
Using version ^5.14 for laravel/installer
richard@AsusAMD:/var/www/laravel12$ cd ..
richard@AsusAMD:/var/www$ cd ..
richard@AsusAMD:/var/www$ laravel new laravel12
laravel: command not found
What is going on??? Something must have changed as I WAS able to get to Starter kit screen earlier this evening. Now for some unknown reason I can't !!!
Any clues anyone ???? :-/
end edit
Brand new to Linux Mint - relatively new install (2 weeks ago). Previously WIn7/WAMP using Netbeans etc. so I'm no Noob to certain things, except this.
I've installed Apache2/PHP8.x/MySQL+PhpMyAdmin, Composer, Netbeans25 etc... (btw - why does almost everyone use VS Code over Netbeans??)
I want to get to know what's what with Laravel so I can start to update my 3 sites, getting away from php7.4 and the errors when upgrading to php8.x :-( Having certain issues ... but one at a time.
Following the Laravel "Create an App using a Starter Kit" ...
"composer global require laravel/installer" - Check! "Using version ^5.14 for laravel/installer"
Next, Laravel instructions say "laravel new my-app"
My terminal says;
"richard@AsusAMD:/var/www$ laravel new my-app
laravel: command not found"
What sort-of catch-22 voodoo is this??? Am I really "that" much of a "noob" to not instantly recognise that an obscure answer is staring me in the face?!?
Any enlightenment would obviously be greatly appreciated!