Laravel Authorization Guard

This skill should be used when the agent writes, edits, or reviews controllers, form requests, policies, gates, API resources, Livewire components, or route definitions that read or mutate a record belonging to a user or organization. Trigger on Gate::define, Gate::before, Gate::allows/denies, Auth::user()->can, $this->authorize, authorizeResource, Route::can / the "can" middleware, @can / @cannot Blade directives, make:policy, AuthServiceProvider, and on any find/findOrFail/route-model-binding followed by an update, delete, or state change. Also load when the user mentions "policy", "gate", "authorization", "permission", "role", "admin only", "403", "forbidden", "IDOR", "can this user", "ACL", or "who is allowed to".

shaxzodbek-uzb Updated

File contents

shaxzodbek-uzb/laravel-guardrails/tree/main/skills/laravel-authorization-guard commit a47caa1b61

Frequently asked questions

npx skillmds@latest add shaxzodbek-uzb/laravel-authorization-guard