Looking to hire Laravel developers? Try LaraJobs

laravel-blade-starter-kit maintained by fabpl

Description
A strict Laravel + Blade Starter Kit
Last update
2025/05/28 13:21 (dev-main)
License
Links
Downloads
3

Comments
comments powered by Disqus

Laravel + Blade Starter Kit

A strict Laravel skeleton.

Introduction

This Blade starter kit uses Blade, Tailwind, and the DaisyUI component library.

Features

✅ Strict Models

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.


🔓 Optional Unguarded Models

Disables Laravel's mass assignment protection globally (opt-in).

Why: Useful in trusted or local environments where you want to skip defining $fillable.


🕒 Immutable Dates

Uses CarbonImmutable instead of mutable date objects across your app.

Why: Prevents unexpected date mutations and improves predictability.


🔒 Force HTTPS

Forces all generated URLs to use https://.

Why: Ensures all traffic uses secure connections by default.


🛑 Safe Console

Blocks potentially destructive Artisan commands in production (e.g., migrate:fresh).

Why: Prevents accidental data loss and adds a safety net in sensitive environments.


License

The Laravel + Blade starter kit is open-sourced software licensed under the MIT license.