Official repository for the container web application!
- Install newest Laragon
- Enable Postgresql (Right Click on Laragon -> Tools -> Quick Add -> PostgreSql X
- Download PHP 7.4 [Thread-safe] and PostgreSql 13 from their website
- Add php 7.4 to php folder inside laragon (C:\laragon\bin\php)
- Add Pgsql 13 to pgsql folder (C:\laragon\bin\postgresql)
- Switch PHP & Pgsql version (Right click on Laragon -> PHP -> version -> select required.)
- Go into pgAdmin 4 (Right click on Laragon -> postgresql -> pgAdmin 4) and create server [add name + host (second tab, host=localhost) ]
- Create database (name can be application), and check user & password required to connect to it.
- Click on application to check if connection is good.
- Enable required php extensions (Right click on Laragon -> PHP -> extensions-> select all pdo_extensions)
- Edit php.ini file (Right click on Laragon -> PHP -> php.ini) to increase memory_limit (search memory_limit and set to -1.)
- Clone project inside www folder of laragon (C:\laragon\www)
- Create .env file and add database connection information
- Click on terminal inside Laragon window and cd into the project
- write command
composer config --global process-timeout 6000 composer installto install backend dependenciesnpm installto install frontend dependenciesphp artisan migrate:fresh --seedto seed the dbnpm run devornpm run watchto compile frontend code. Right click on laragon -> www -> application and it should work !
NB:
- If path in searchbar doesn't follow {name}.test, click on laragon->preferences and enable it !
- You can add nginx instead of apache if you want via the quick add menu
- If you have a 419 error after login, add SESSION_SECURE_COOKIE=falseto you .env file
- If you have trouble with loading your php extension, make sure php.ini file isn't the one loaded locally inside your computer ! It must be the one inside laragon.
- If you still have trouble loading your php extension, make sure mbstring is loaded first inside your php.ini file