Removing Laravel & Composer? Happy to pay for help.
How do I completely remove Laravel and Composer?
I have installed both but I was unable to get my project set up. Since then I've gone on the internet and typed so many things into my command terminal and as a result, I've gone backwards!
I'd like someone to help me completely uninstall and reinstall Laravel and Composer so I can follow along with the tutorial.
I typed in the following to see if Laravel was installed
php artisan --version
I get “Could not open input file: artisan”
So not installed, right?
When I try to install it using composer global require laravel/installer
I get the following:
Changed current directory to /Users/aman/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
Downgrading laravel/installer (v2.3.0 => v1.5.0): Downloading (100%) Writing lock file
Generating autoload files
6 packages you are using are looking for funding.
Use the composer fund command to find out more!
@jovanvta I never got to that stage! I'm actually wondering whether I should just restore my mac and start again. It's not something I want to do but it's one way to start over completely. I've been sat here for 6 hours trying to solve this... I'm not giving up! lol
php artisan runs the artisan file in the current folder - normally the root of your Laravel project
This has NOTHING to do with;
composer global require laravel/installer
This installs the laravel installer into your system so that you can create a new project at any time using the installer. Not sure why you specified an old version of the installer?
If you want to remove globally installed laravel package edit ~/.composer/composer.json (or in your case /Users/aman/.composer/composer.json) and then run composer global update.