Submission for Pay4me assessment, includes CRUD application via FilamentPHP, Testing with PestPHP and doc generation with Laravel Scribe
The app has been hosted https://pay4me.laravel.cloud
You can visit the admin panel here
User Type | Password | |
---|---|---|
Admin | admin@example.com | password |
Non-Admin | user@example.com | password |
- clone repository
- copy .env.example file to .env and also to .env.testing file. Go to Configuration to set DB details
cp .env.example .env && cp .env.example .env.testing
- Download Dependencies
composer install
- Set encryption key
php artisan key:generate
- Perform migrations and seed database and migrate db for testing database
php artisan migrate --seed && php artisan migrate --env=testing
- To generate the documentation, you can run
php artisan scribe:generate
- You can visit the documentation at /docs
- After setting up, you can run the tests by running:
php artisan test
- To see code coverage for the tests, install xdebug and then run
php artisan test --coverage
Please modify these values in the .env
file.
- DB_DATABASE=product_db
- DB_PASSWORD=**** (Put your password here, leave blank if your mysql root uses no password)
Please modify these values in the .env.testing
file.
- DB_DATABASE=product_db_testing
- DB_PASSWORD=**** (Put your password here, leave blank if your mysql root uses no password)