A strict Laravel skeleton.
This Vue starter kit uses Vue 3 and the Composition API, TypeScript, Tailwind, and the shadcn-vue component library.
Improves how Eloquent handles undefined attributes, lazy loading, and invalid assignments.
- Accessing a missing attribute throws an error.
- Lazy loading is blocked unless explicitly allowed.
- Setting undefined attributes throws instead of failing silently.
Why: Avoids subtle bugs and makes model behavior easier to reason about.
Disables Laravel's mass assignment protection globally (opt-in).
Why: Useful in trusted or local environments where you want to skip defining $fillable
.
Uses CarbonImmutable
instead of mutable date objects across your app.
Why: Prevents unexpected date mutations and improves predictability.
Forces all generated URLs to use https://
.
Why: Ensures all traffic uses secure connections by default.
Blocks potentially destructive Artisan commands in production (e.g., migrate:fresh
).
Why: Prevents accidental data loss and adds a safety net in sensitive environments.
Configures Laravel Vite to preload assets more aggressively.
Why: Improves front-end load times and user experience.
The Laravel + Vue starter kit is open-sourced software licensed under the MIT license.