spatie/laravel-visit
Adds a php artisan visit command to quickly hit any route in your Laravel app and inspect the response. Shows colorized HTML or JSON output plus request results, with options like visiting by route name and logging in a user before the request.
php artisan visit /dashboard --user=1).route:list instead).For Executives:
"This package lets our developers test any route in our Laravel app with a single CLI command—no browser or Postman needed. It’s like a ‘live preview’ for routes, including APIs and auth-protected pages, which will cut down on manual testing time by 30%+ during sprints. It’s lightweight, open-source, and integrates seamlessly with our existing stack. For example, a developer can quickly check if a new checkout flow works by running php artisan visit /checkout --user=123—saving hours of back-and-forth debugging. It’s a no-brainer for improving velocity without adding technical debt."
For Engineering/Dev Teams:
*"Spatie’s laravel-visit gives us a supercharged way to test routes on the fly. Key perks:
/posts/{id}).--user=1) to test protected routes.visit dashboard) or URLs (visit /api/users).How can I help you explore Laravel packages today?