A simple learning project based on Laravel 9.x.
- PHP version: >= 8.0.2
- Composer
- Node.js
- Redis
git clone https://github.com/ingenius-hq/laravel-learning.git
cd laravel-learning
composer install
npm install
npm run dev # or npm run prod
- Edit file
.env
. If this file does not exist you can create it by copying the content of the.env.example
file. - Configure the database data (name, location, user and password).
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database_name
DB_USERNAME=root
DB_PASSWORD=password
- Once the parameters have been configured, create a database for the project and import the tables with the following command:
php artisan migrate --seed
Through the terminal in the project folder, execute the command
php artisan serve