Where do I find…

Which package owns what?

Adding a new endpoint

  1. Define the route in the package’s routes.php:
  1. Create a FormRequest for validation:
  1. Create the controller method (keep it thin):
  1. Add business logic in the service.
  2. Add a policy method if it’s a new action type.

Adding a new model

  1. Create the migration (with KSUID primary key):
  1. Create the model with KsuidTrait:
  1. Create a policy and register it in the ServiceProvider.
  2. Create a resource for API responses.

Debugging a request

  1. Check Telescope at /telescope — see the full request/response, queries, and errors
  2. Check logs in storage/logs/laravel.log
  3. Use tinker for interactive debugging:
  1. Check route registration:

Running specific tests

Resetting your local environment

Working with the queue locally

For development, you can either process jobs synchronously:
Or run a worker in a separate terminal: