The full version of this task: Laravel hiring test
- DB structure (image at the end of this list)
- Get the list of public & paginated travels: /travels
- Get the list of paginated tours: /travels/{travel-slug}/tours
- Tours filtering and ordering by: priceFrom, priceTo, dateFrom, dateTo
- Roles (admin & editor)
- Create users artisan command
- Admin endpoint: create new travels, with middleware role:xxxxx
- Admin endpoint: create new tours for travels
- Editor endpoint: update travel
- Automated Tests with Pest
- API Documentation with Scribe
- Clone the repository
https://github.com/dmshved/welltrip.git
- Copy
.env.examplefile to.envand edit database credentials there
copy .env.example .env
- Install dependencies
composer install
npm install
- Generate key
php artisan key:generate
- Run migrations
php artisan migrate
- Seed the database with test data (runs the roles seeding)
php artisan db:seed
- Run the application
php artisan serve
- Create a user using artisan command
php artisan users:create
