The List of Macroable Laravel Classes

The following list are all of the Laravel classes that currently use the Macroable trait and accept macro calls.

The Classes

  1. Illuminate\Auth\RequestGuard
  2. Illuminate\Auth\SessionGuard
  3. Illuminate\Cache\Repository
  4. Illuminate\Console\Command
  5. Illuminate\Console\Scheduling\Event
  6. Illuminate\Cookie\CookieJar
  7. Illuminate\Database\Eloquent\FactoryBuilder
  8. Illuminate\Database\Eloquent\Relations\Relation
  9. Illuminate\Database\Grammar
  10. Illuminate\Database\Query\Builder
  11. Illuminate\Database\Schema\Blueprint
  12. Illuminate\Filesystem\Filesystem
  13. Illuminate\Foundation\Testing\TestResponse
  14. Illuminate\Http\JsonResponse
  15. Illuminate\Http\RedirectResponse
  16. Illuminate\Http\Request
  17. Illuminate\Http\Response
  18. Illuminate\Http\UploadedFile
  19. Illuminate\Mail\Mailer
  20. Illuminate\Routing\PendingResourceRegistration
  21. Illuminate\Routing\Redirector
  22. Illuminate\Routing\ResponseFactory
  23. Illuminate\Routing\Route
  24. Illuminate\Routing\Router
  25. Illuminate\Routing\UrlGenerator
  26. Illuminate\Support\Arr
  27. Illuminate\Support\Collection
  28. Illuminate\Support\LazyCollection
  29. Illuminate\Support\Str
  30. Illuminate\Support\Testing\Fakes\NotificationFake
  31. Illuminate\Translation\Translator
  32. Illuminate\Validation\Rule
  33. Illuminate\View\Factory
  34. Illuminate\View\View