- PHP >= 8.1
- Composer
- MySQL or MariaDB
- Node.js & NPM
- Clone the repository:
git clone https://github.com/tuhmaz/laravelweb.git
cd laravelweb
- For Windows users, run the installation script:
.\install.ps1
For Linux/Mac users:
chmod +x install.sh
./install.sh
- Copy the environment file:
cp .env.example .env
- Configure your
.env
file with your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password
- Install dependencies:
composer install --no-interaction --prefer-dist --optimize-autoloader
- Generate application key:
php artisan key:generate
- Run migrations:
php artisan migrate --force
- Clear all caches:
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
- Optimize the application:
php artisan optimize
If you encounter the error about the settings
table not existing during installation:
- First run the migrations:
php artisan migrate --force
- Then proceed with the rest of the installation:
composer dump-autoload -o
php artisan package:discover
This project is licensed under the MIT License.