moonshine-security-v3

Configure MoonShine v3 authentication, authorization, and Laravel policy pipelines.

2|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/agarzon/moonshine-v3-skills --skill moonshine-security-v3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moonshine-security-v3
Source: https://github.com/agarzon/moonshine-v3-skills/tree/main/moonshine-security-v3
Command: npx skills add https://github.com/agarzon/moonshine-v3-skills --skill moonshine-security-v3

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

MoonShine v3 ships with an integrated authentication and authorization system. It centralizes user authentication, policy-driven access control, and pipeline-based login flows to secure admin panels without requiring external packages.

Core Features & Use Cases

  • Built-in moonshine guard, user model, and Authenticate middleware for route protection.
  • Laravel Policies for per-resource access control with optional per-resource activation via $withPolicy.
  • Flexible auth pipelines to insert extra steps (2FA, phone verification) into login.
  • Customizable login/profile pages and user fields.
  • Optional extensions: Socialite, JWT, 2FA.

Quick Start

Follow the root router to moonshine-security-v3 to set up guard, policies, and pipelines.

Frequently Asked Questions about moonshine-security-v3

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

FAQPage Schema
How do I set up authentication and authorization in a MoonShine v3 admin panel?

MoonShine v3 provides a built-in guard, customizable user model, and Authenticate middleware to secure admin panels without external packages. You configure these components to enforce role-based access and protect routes directly within your application.

Can I use Laravel policies for per-resource access control in MoonShine v3?

Yes, MoonShine v3 supports Laravel Policies for per-resource access control. You can enforce policies on specific resources by activating them through the $withPolicy property, ensuring granular authorization checks across your admin panel.

How do I add two-factor authentication or phone verification to MoonShine login flows?

MoonShine v3 uses flexible auth pipelines to insert extra login steps like 2FA or phone verification. You add custom pipeline stages to the authentication flow to enforce additional verification methods before granting admin panel access.

Does MoonShine v3 authentication work with Laravel Socialite and JWT?

Yes, MoonShine v3 supports optional extensions including Socialite and JWT. These allow you to integrate social login providers and token-based authentication into your admin panel's built-in authentication system.

How can I customize the login and profile pages in MoonShine v3?

MoonShine v3 allows you to customize login and profile pages along with user fields. You modify these built-in authentication views and user model attributes to match your admin panel's specific UI and data requirements.

Why use MoonShine v3's built-in auth instead of external Laravel packages?

MoonShine v3 centralizes authentication, policy-driven access control, and pipeline-based login flows natively. This integrated approach eliminates the need for external packages, ensuring seamless security configuration and consistent authorization enforcement across admin resources.