laraveldaily-permissions-audit

Audit Laravel PHP source files for authorization and permission issues.

132|33|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/LaravelDaily/AI-Workflows-For-Laravel --skill laraveldaily-permissions-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laraveldaily-permissions-audit
Source: https://github.com/LaravelDaily/AI-Workflows-For-Laravel/tree/main/skills/laraveldaily-permissions-audit
Command: npx skills add https://github.com/LaravelDaily/AI-Workflows-For-Laravel --skill laraveldaily-permissions-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many Laravel applications have hidden authorization flaws such as UI‑only checks, role‑based logic instead of permissions, and missing data scoping, leading to insecure access control.

Core Features & Use Cases

  • Scans all PHP source files (excluding vendor, node_modules, storage) for UI‑only authorization, inline role checks, boolean admin flags, hard‑coded strings, and missing middleware.
  • Detects missing query scoping and improper use of policies, ensuring data visibility follows permission rules.
  • Generates a structured report with actionable suggestions for improving role‑based access, adopting enums, and adding tests.

Quick Start

Run the laraveldaily-permissions-audit skill to scan your Laravel project and receive a detailed permissions audit report.

Frequently Asked Questions about laraveldaily-permissions-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Laravel permissions for insecure access control?

Laravel authorization audits detect UI-only checks, inline role logic, hard-coded strings, and missing query scoping. This process outputs a structured report with actionable suggestions to fix insecure access control and enforce proper permissions.

What are common Laravel authorization gaps in roles and permissions?

Common Laravel authorization gaps include UI-only checks, boolean admin flags, hard-coded strings, missing middleware, and improper use of policies. These flaws cause missing query scoping and fail to enforce secure data visibility.

How do I find missing data scoping in Laravel projects?

Find missing data scoping by scanning PHP source files for improper use of policies and missing query restrictions. The audit identifies where data visibility fails to follow permission rules and outputs suggestions to add proper scoping.

Can I scan a Laravel repository for UI-only auth checks?

Yes, you can scan a Laravel repository by providing the repository path. The audit scans all PHP source files excluding vendor, node_modules, and storage to flag UI-only auth checks and output a structured permissions report.

Does the Laravel permissions audit exclude vendor and storage directories?

Yes, the Laravel permissions audit excludes vendor, node_modules, and storage directories. It scans the remaining PHP source files to detect missing middleware, hard-coded strings, and authorization gaps without evaluating external packages.