c_Learn & Practice AILEARN/Add a Laravel authorization policy
← Prompt library
Level 9 · Backend

Add a Laravel authorization policy

Implement authorization for {{RESOURCE}} in {{PROJECT_NAME}} using existing Laravel policies and authentication conventions. Deny access unless explicitly allowed.

LaravelAdvanced

Fill in the variables

Replace the placeholders with your project’s real details. Keep secrets out.

Example input

PROJECT_NAME: codex-practice · SCOPE: index.html

Expected result

Test owner, non-owner, guest, and privileged roles against actual routes.

Expected result

Review and edit before using it in your project.

Before you run

Practice safely: use a disposable folder and sample data. Check every placeholder and the actual project state before using this template.

Esc · Close