laravel:controller-tests

Feature tests for endpoints

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel:controller-tests" with this command: npx skills add jpcaparas/superpowers-laravel/jpcaparas-superpowers-laravel-laravel-controller-tests

Controller Tests

Feature tests for endpoints

it('rejects empty email', function () { $this->post('/register', ['email' => ''])->assertSessionHasErrors('email'); });

Better tests

  • Move validation to Form Requests; assert errors from the request class

  • Extract business logic into Actions; unit test them directly

  • Use factories for realistic data; avoid heavy mocking

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel:routes-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:blade-components-and-layouts

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:queues-and-horizon

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:quality-checks

No summary provided by upstream source.

Repository SourceNeeds Review