Simple project to display and manage the Root Club price list.
ddev startddev composer installThe project uses two database:
- For
localenvironment:db - For
testingenvironment:db_test
Migrations on db_test are not required since LazilyRefreshDatabase trait is used.
See Resetting The Database After Each Test
for more information.
ddev exec php artisan migrateddev exec php artisan db:seedTo set up a fresh version of database and run seeders at the same time:
ddev exec php artisan migrate:fresh --seedRun checks prior to commit
ddev exec tools/static-analysis.shFix style in project with PHP CS Fixer:
ddev exec tools/fix-style.shTo run Php Insights with verbose output:
ddev exec ./vendor/bin/phpinsights -vRun tests with:
ddev exec vendor/bin/pestRun tests coverage with:
ddev xdebugand:
ddev exec XDEBUG_MODE=coverage vendor/bin/pest --coverageBy defaults, queues are sync:
QUEUE_CONNECTION=syncIt's possible to set the async with:
QUEUE_CONNECTION=redisRedis is used as message queues manager.
ddev exec php artisan queue:workDuring tests, queues are sync since in .env.testing there is:
QUEUE_CONNECTION=sync