-
Choose a software stack (these instructions are for WAMP using MySQL)
-
Either place the project in the www folder of WAMP; or create a VirtualHost for it.
-
In project folder:
- Rename
.env.example
to.env
- Open it with a text editor en change the value of
DB_DATABASE
toafspraken_database
(3. You might also have to change the DB_PORT variable, this is the port that your active Database listens to, either MySQL or MariaDB. You can find the active port by right-clicking the WAMP-icon in taskbar and going to Tools. There you'll find e.g 'Port used by MySQL: 3306')
- Rename
-
Create the database
afspraken_database
via phpMyAdmin- Navigate to https://localhost/phpmyadmin/
- Username: root
- Password: <empty>
- Server Choice: MySQL
- Click New, enter
afspraken_database
and click Create
- Navigate to https://localhost/phpmyadmin/
-
composer install && php artisan key:generate && php artisan migrate && php artisan db:seed
In case of problems with migrations: php artisan migrate:reset && php artisan migrate
Also, I added these as scripts to package.json:
php artisan migrate:reset
php artisan migrate
php artisan db:seed
composer dump-autoload