This simple steps will show you how to follow each step to clone a laravel project from a github repository so you can run it in your local computer.
$ git clone https://github.com/aloha202/laravel9_inertia_vue_crud.git
$ cd laravel9_inertia_vue_crud
$ composer install
$ npm install
Make a copy to create a .env file:$ cp .env.example .env
$ code .
$ cp .env.example .env; code .env
$ php artisan migrate
$ php artisan key:generate
Run the PHP Server$ php artisan serve
$ npm run dev
Example repo:
git clone https://github.com/John-Weeks-Dev/amazon-clone.git
cd amazon-clone
composer install
cp .env.example .env
php artisan cache:clear
composer dump-autoload
php artisan key:generate
composer require laravel/breeze --dev
or if you get an error:
composer require --dev laravel/breeze:*
php artisan breeze:install vue --inertia
php artisan migrate
php artisan db:seed
php artisan serve
Be sure to update your database in .env:
UPDATE: GOT ERROR? To ignore error try this command:
composer install --ignore-platform-reqs
Or if you want to update:composer update --ignore-platform-reqs
This is the error I received:
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- nette/schema is locked to version v1.2.1 and an update of this package was not requested.
- nette/schema v1.2.1 requires php >=7.1 <8.1 -> your php version (8.1.12) does not satisfy that requirement.
Problem 2
- nette/utils is locked to version v3.2.3 and an update of this package was not requested.
- nette/utils v3.2.3 requires php >=7.2 <8.1 -> your php version (8.1.12) does not satisfy that requirement.
Problem 3
- nette/schema v1.2.1 requires php >=7.1 <8.1 -> your php version (8.1.12) does not satisfy that requirement.
- league/config v1.1.1 requires nette/schema ^1.2 -> satisfiable by nette/schema[v1.2.1].
- league/config is locked to version v1.1.1 and an update of this package was not requested.