create-inertia-page
Installation
SKILL.md
Create Inertia Page
When To Use
Use this skill when building client-rendered UI pages, setting up forms using React or Vue within a Laravel backend, or lazy loading dashboard data tables.
Workflow
- Verify setup: Ensure
inertiajs/inertia-laravelis installed and the root template (app.blade.php) is configured. - Scaffold frontend component: Create a Vue/React page inside
resources/js/Pages/(e.g.resources/js/Pages/Posts/Show.vue). - Draft Controller Handler: Write a controller action returning
Inertia::render(). - Setup client-side form: Use
useFormto bind inputs and handle validations.