PromptCC0-1.0 di9 pick

Laravel access control review

Prevents users from reaching others' data or escalating roles without authorisation.

This Prompt What does it do?

Prevents users from reaching others' data or escalating roles without authorisation.

Download security-laravel-authorization-mass-assignment.md Build a custom version 8 Download · 12 Views

Full text Prompt

Review this Laravel code for access control: [controller, model, and routes code]. Look for IDOR (accessing others' records by changing the id), missing Policies or Gates, empty $guarded or request()->all() in create and update, fillable sensitive fields like is_admin, and routes without middleware. Give a fix for each.

English version (for image and video models)

Review this Laravel code for access control: [controller, model, and routes code]. Look for IDOR (accessing others' records by changing the id), missing Policies or Gates, empty $guarded or request()->all() in create and update, fillable sensitive fields like is_admin, and routes without middleware. Give a fix for each.

Build a custom version for your project

Write your project details; to the end of Prompt is added, and you get a file that is given to the AI without extra explanation. Everything is built in your browser and no data goes to the server.

Language of the added section
Preview of the final file

Frequently asked questions

Prompt “Laravel access control review” — how do I use it?

Click the copy button, fill in any variables under “Fill in the variables”, and paste the text into ChatGPT, Claude, Cursor . For an answer in your language, add at the end: “Answer in my language”.

Is using this prompt free?

Yes. This prompt is from the collection awesome-persian-prompts With license CC0-1.0 collected and free for personal and commercial use.

Prompts Related in “PHP and Laravel”

All

Type a few letters of the topic; spelling variants are treated as the same.