A modern starter kit combining Laravel 12 with React, TypeScript, and several powerful tools for rapid application development.
- Full authentication system using Laravel Breeze
- Role-based access control (ROLE_ADMIN, etc.)
- Protected routes with middleware
- User management (CRUD operations)
- React 18 with TypeScript
- Inertia.js for seamless SPA-like experience
- Tailwind CSS for styling
- Shadcn/ui components library
- React Hook Form with Zod validation
- Lucide React for icons
- Responsive layout with mobile support
- Toast notifications
- SweetAlert2 for confirmations
- Laravel 12 framework
- MySQL database
- RESTful API architecture
- Form request validation
- Eloquent ORM with relationships
- Database migrations and seeders
- TypeScript for better type safety
- Hot module replacement
- ESLint & Prettier configuration
- Organized folder structure
laravel-react-starter-kit/
├── app/
│ ├── Http/
│ │ ├── Controllers/
│ │ └── Middleware/
│ └── Models/
├── resources/
│ └── js/
│ ├── components/
│ │ └── ui/
│ ├── layouts/
│ ├── lib/
│ ├── pages/
│ └── types/
└── routes/
- Clone the repository:
git clone https://github.com/yourusername/laravel-react-starter-kit.git
- Install PHP dependencies:
composer install
- Install Node dependencies:
npm install
- Configure environment:
cp .env.example .env
php artisan key:generate
- Set up database:
php artisan migrate --seed
- Start development servers:
php artisan serve
npm run dev
npm run dev
: Start development servernpm run build
: Build for productionphp artisan test
: Run testsphp artisan migrate:fresh --seed
: Reset database with fresh data
- Sortable columns
- Custom cell rendering
- Responsive design
- Action buttons with permissions
- Form validation with Zod
- Error handling
- Backend validation integration
- File upload support
- Login/Register pages
- Password reset
- Remember me functionality
- Session management
- User listing with roles
- Create/Edit/Delete users
- Role assignment
- Permission checks
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
This project is open-sourced software licensed under the MIT license.
- PHP 8.2+
- Node.js 16+
- MySQL 8.0+
- Composer
- npm
This starter kit provides a solid foundation for building modern web applications with Laravel and React. Feel free to customize it according to your needs!