nelsondiego / dn-laravel
Laravel Starter Kit
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:TypeScript
Type:project
Requires
- php: ^8.2
- inertiajs/inertia-laravel: ^2.0
- laravel/framework: ^12.9
- laravel/sanctum: ^4.0
- laravel/tinker: ^2.10.1
- laravel/wayfinder: ^0.1.4
Requires (Dev)
- beyondcode/laravel-dump-server: ^2.1
- fakerphp/faker: ^1.23
- laravel/pail: ^1.2.2
- laravel/pint: ^1.13
- laravel/sail: ^1.41
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- pestphp/pest: ^3.7
- pestphp/pest-plugin-laravel: ^3.1
README
DN Laravel Starter Kit
DN Laravel Starter Kit is a Laravel application template designed to streamline the development process for new projects. It includes a pre-configured authentication system, Inertia.js/React frontend integration, Tailwind CSS with a modern design system, shadcn UI components library, optimized development environment setup, predefined testing configuration, and essential Laravel packages.
🚀 Features
- Authentication system ready out-of-the-box
- Inertia.js/React frontend integration
- Tailwind CSS with modern design system
- shadcn UI components library
- Optimized development environment setup
- Predefined testing configuration
- Actions pattern for better code organization and testability
- Laravel Dump Server for improved debugging (documentation)
- Laravel Wayfinder for simplified routing (documentation)
- Includes essential Laravel packages
📐 Actions Pattern
This starter kit implements the Actions pattern, which helps organize business logic into single-purpose, reusable classes. Each Action class is responsible for executing a specific task, making the code more maintainable, testable, and following the Single Responsibility Principle.
Actions are located in the app/Http/Actions
directory and are organized by domain (e.g., Account
, Auth
). Controllers delegate business logic to these Action classes, keeping controllers thin and focused on HTTP concerns.
Example usage in a controller:
public function index(Request $request) { return Inertia::render("account/account",[ 'currentUser' => new UserResource( $this->getAccountAction->execute(Auth::id()) ) ]); }
🛠️ Installation
- Create project and navigate:
laravel new --using=nelsondiego/dn-laravel
cd your-project-name
Important: This application requires running with SSL (using Herd or Valet) due to history encryption. See the Inertia.js documentation for more details.
- Start development server:
php artisan serve
👨💻 Contribuciones bienvenidas | 📄 Licencia MIT | 🐛 Reportar issues