jeroengerits/laravel

My starter kit for Laravel.

dev-main 2025-04-19 04:45 UTC

This package is auto-updated.

Last update: 2025-04-19 04:45:23 UTC


README

A minimal yet powerful Laravel 12 starter kit with sensible defaults to help you build fast, secure, and maintainable applications.

This project is currently under active development.

🚧 Todo

  • Add fluent classname builder and merger
  • Use Volt for Livewire components

πŸ› οΈ Stack

  • Laravel 12 - with essential defaults
  • Tailwind 4 - and custom colors, fonts and config
  • Livewire 3 - includes AlpineJS

🀏🏻 Minimal

  • Does not include authentication pages (login, register, etc)

✨ Features

πŸ”§ Code Quality

  • Preconfigured with Laravel Pint, PHPStan and Rector for automatic formatting, type checking and refactoring.
  • Run composer prepare to fix code issues in one single command.

πŸ“¦ Eloquent Enhancements

🎨 Styling and Theme

🧩 Blade Layouts

  • <x-layouts.html />: A base layout with minimal HTML, default scripts, and styles for rapid prototyping.
    • πŸ‘‰ todo: add link

πŸ’― Testing Improvements

  • Database Refreshing: Refreshes the database after a test
  • No External Requests: Prevents outbound HTTP requests during testing using Laravel’s HTTP fake.
    • πŸ‘‰ todo: add link
  • Laravel Debugbar: Integrated for better insight during local development.
    • πŸ‘‰ todo: add link

πŸ”’ Security Additions

  • Forced HTTPS: All URLs are automatically HTTPS in production.
    • πŸ‘‰ todo: add link
  • Safe Console Commands: Blocks destructive Artisan commands in production environments.
    • πŸ‘‰ todo: add link

πŸš€ Performance Optimizations

  • Vite Prefetching: Enables aggressive prefetching for faster navigation.
    • πŸ‘‰ todo: add link
  • Immutable Dates: Uses CarbonImmutable to avoid unintentional date mutations.
    • πŸ‘‰ todo: add link
  • Named Root Route: Root route is named home for clarity and consistency.
    • πŸ‘‰ todo: add link
  • Centralized Config: Includes a custom essentials.php config file for managing core app settings.
    • πŸ‘‰ todo: add link