Skip to content

Kleppinger/laravel-shadcn-starter

Repository files navigation

Laravel Logo shadcn/ui Logo Inertia.js Logo

Laravel + shadcn/ui Starter

A modern full-stack starter template combining the power of Laravel with the beautiful UI components of shadcn/ui and the seamless page transitions of Inertia.js.

Login Page Register Page

Forgot Password Page Dashboard Page

Features

  • Pre-configured shadcn/ui components
  • Inertia.js for seamless SPA experience
  • TypeScript support out of the box
  • Dark mode ready
  • Responsive design
  • Fully implemented authentication flow (with email verification!)

Getting Started

Prerequisites

  • PHP 8.3 or higher
  • Composer
  • Node.js 18+ and npm/bun
  • SQLite (or your preferred database)

Installation

  1. Clone the repository:
git clone https://github.com/Kleppinger/laravel-shadcn-starter.git
cd laravel-shadcn-starter
  1. Install PHP dependencies:
composer install
  1. Install JavaScript dependencies:
npm install
# or using bun (recommended)
bun install 
  1. Copy the environment file and generate application key:
copy .env.example .env
php artisan key:generate

Notice: In the example, MAIL_MAILER is set to preview. If you dont want this, please configure a different viewer.

  1. Run database migrations:
php artisan migrate
  1. Start the Vite and Laravel development server:
composer run dev

Visit http://localhost:8000 in your browser.

Configuration

To easily disable/enable mail verification, just change the setting in config/template.php:

<?php

return [
    'enable_verification' => true,
];

Development

Adding shadcn/ui Components

Add new shadcn/ui components using the CLI:

npx shadcn@latest add button
npx shadcn@latest add card
# etc.

Code Formatting

Format your PHP code with Laravel Pint:

vendor/bin/pint
php artisan test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open-sourced software licensed under the MIT license.

Acknowledgments

About

An Laravel 12 template that uses Inertia.js with shadcn

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •