laravel-inertia-react

Implement Laravel, Inertia.js, and React page components with TypeScript.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/bjorkgard/convention-hosts --skill laravel-inertia-react-bjorkgard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-inertia-react
Source: https://github.com/bjorkgard/convention-hosts/tree/main/.ai/skills/laravel-inertia-react
Command: npx skills add https://github.com/bjorkgard/convention-hosts --skill laravel-inertia-react-bjorkgard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes rules (resource) components.

What problem does it solve?

This Skill provides essential patterns and best practices for building full-stack applications using Laravel, Inertia.js, and React, streamlining development and ensuring consistency.

Core Features & Use Cases

  • Page Components: Structure and type Inertia pages with TypeScript.
  • Forms & Validation: Handle forms with useForm, including validation and file uploads.
  • Navigation: Implement SPA-like navigation using Inertia's Link and router.
  • Shared Data: Access authentication, flash messages, and configuration globally.
  • Use Case: When developing a new feature in a Laravel application that requires dynamic user interfaces, form handling, and seamless page transitions, this Skill provides the foundational patterns to implement it efficiently and maintainably.

Quick Start

Use the laravel-inertia-react skill to create a new page component for user management.

Frequently Asked Questions about laravel-inertia-react

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

FAQPage Schema
How do I build a monolithic application with a Laravel backend and a React frontend?

You can build monolithic applications with a Laravel backend and React frontend by using Inertia.js to bridge the two frameworks. This approach provides SPA-like navigation and seamless page transitions without requiring a separate REST API.

What is the best way to handle form validation and file uploads in Laravel Inertia React?

Handle form validation and file uploads in Laravel Inertia React by using the `useForm` hook within your page components. This pattern manages form state, handles validation errors from Laravel, and processes file uploads seamlessly.

How do I implement SPA-like navigation in a Laravel React application?

Implement SPA-like navigation in a Laravel React application by using Inertia.js `Link` component and `router` module. These tools handle client-side page transitions seamlessly, retaining the SPA feel while relying on standard Laravel server-side routing.

Do I need TypeScript to use Inertia.js with Laravel and React?

TypeScript is required to implement the Inertia.js patterns provided for Laravel and React. The Skill relies on TypeScript to structure and type Inertia page components, ensuring type safety and consistency across the full-stack application.

How do I access shared data like authentication and flash messages in Inertia React?

Access shared data like authentication and flash messages in Inertia React by leveraging Inertia.js shared data management. This pattern allows you to retrieve global Laravel session data and configuration directly within your React page components.

How do I structure persistent layouts for React page components in Laravel Inertia?

Structure persistent layouts for React page components in Laravel Inertia by utilizing specific layout patterns provided by Inertia.js. This maintains consistent UI structures like navigation bars across page transitions without unnecessarily remounting the React component tree.