docker run --rm \ -u "$(id -u):$(id -g)" \ -v $(pwd):/var/www/html \ -w /var/www/html \ laravelsail/php81-composer:latest \ composer install --ignore-platform-reqs
php artisan migrate --seed
npm install
npm run dev
- Visit http://localhost
- Add or remove a tag from the user
- Submit the form (verify submission with the presence of
Result: Updated
in the UI) - Note how the tag state is the original state
- Refresh the page
- Visit non-searchable UI http://localhost/dep-test
- Note the options for publishers
- Select a user
- Note how publisher select options are updated, filtered to publishers that the user has a
BelongsToMany
relationship with Publisher - Visit searchable UI http://localhost/dep-test?searchable=1
- Note the options for publishers
- Select a user
- Note how the options for publisher are the original options