# One-Command shadcn/ui Page Install in Laravel

> Add complete multi-file dashboard pages to Laravel via remote shadcn registries

This workflow demonstrates how to pull an entire production-ready page, including components and dependencies, directly into a Laravel Inertia/React project using the shadcn CLI. It leverages remote registries to scaffold complex views like product tables and filters in seconds. Once installed, integrating the layout requires only minor route definitions and wrapping the view in the application layout.

## How it works

1. Run the dev server (\`composer dev\` in a Laravel app). 2. Run \`pnpm dlx shadcn@latest add http://ui.shadcn.com/r/styles/new-york-v4/...\` — the CLI checks the registry, installs dependencies, and creates files (e.g. resources/js/pages/products.tsx, resources/js/components/products-table.tsx, skipping identical files unless --overwrite). 3. Add the route (e.g. Route::get('settings', ...) in routes/settings.php or a products route). 4. Open the page in the browser; wrap it in \`\<AppLayout\>\` to get the sidebar nav. 5. End result: a Products page with nav, layout, tabs (All/In Stock/Low Stock/Archived), category and price filters, stock status badges, plus the starter kit's appearance settings with dark mode.

## What it is for

- Scaffold complex data dashboard pages into a Laravel Inertia setup quickly
- Distribute and install modular multi-file components via custom or public shadcn registries
- Integrate pre-styled React UI tables and filters with Laravel starter kit layouts

## Key points

- Uses \`shadcn add \<url\>\` to pull complete pages from remote registries
- Automatically resolves, installs, and places required UI components and dependencies
- Prevents overwriting identical existing project files unless explicitly specified
- Integrates directly into standard Laravel Inertia page directory structures (\`resources/js/pages\`)
- Pairs cleanly with existing Laravel starter kit navigation and AppLayout components

## Pricing

Free

## Details

- Type: Tip
- Category: [Development](https://xiry.app/topics/development.md)
- Open source: yes
- Platforms: Command line
- For: Full-stack Laravel developers using Inertia and React
- Tags: laravel, shadcn, react, inertiajs, tailwind, scaffolding

## Why it was saved

- [@shadcn, 28 February 2025](https://x.com/shadcn/status/1895576952775589925): Shows how remote registries can install whole multi-file features into a codebase, and how to integrate the result with Laravel's starter kit routes and AppLayout.

## Related

- [Efferd](https://xiry.app/resources/efferd): Pre-built, responsive shadcn/ui blocks and layouts for React applications (Web app, Freemium)
- [21st.dev](https://xiry.app/resources/21st-dev): Curated directory of crafted React, Tailwind, and shadcn UI components. (Website, Freemium)
- [MicroKit UI](https://xiry.app/resources/microkit-ui): Free copy-paste React and CSS micro-interactions for modern web interfaces (Website, Free)
- [prompt-kit Primitives](https://xiry.app/resources/prompt-kit-primitives): Fullstack building blocks for AI apps installable with shadcn CLI (Web app, Open source)
- [ReUI](https://xiry.app/resources/reui): Curated shadcn/ui components, application blocks, animated elements, and MCP server. (Website, Freemium)
- [Shadcn Admin](https://xiry.app/resources/shadcn-admin-2502): Admin dashboard templates and UI blocks built with shadcn/ui and Tailwind (Website, Freemium)

Updated 11 October 2026. Page: https://xiry.app/resources/one-command-shadcn-ui-page-install-in-laravel

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
