Albelli backend (Laravel + swagger) and frontend (React+redux) test
That relation is many-to-many that can only be broken by using a pivot table, which maps each individual advertisement id with each offer id. In Laravel, it can be done quickly by following the conventions (first advertisements_offers table, etc), then you have to manage the relationship in the store, delete and update methods in order not to have consistency errors.
docker-compose up --build -d frontend
Will run all the required containers (mysql,php,nginx,react build..)
docker-compose up --build -d nginx
localhost:8000/api
Swagger UI url
localhost:8000/api/documentation
React application
localhost:8080