- PHP >= 7.3
- Laravel 8
- mysql
- composer
composer install
sudo service mysql start
sudo mysql -u root -p
Enter password: (enter your root password)
mysql> CREATE DATABASE laravel;
mysql> exit;
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=laravel
- DB_USERNAME=root
- DB_PASSWORD=your-password
cp .env.example .env
php artisan migrate
php artisan server --port=3000;
If you don't want start application manually, you can create .env file with the information of mysql database and run start.sh.
./start.sh "your root password"