Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquent Default

Eloquent Default Laravel Package

tusimo/eloquent-default

A Laravel package that lets Eloquent models declare default attribute values, reducing boilerplate and keeping newly created records consistent without repeating assignments across controllers and services.

View on GitHub
Deep Wiki
Context7

tusimo/eloquent-default adds convenient default attribute values to Laravel's Eloquent models, letting you define sensible fallbacks once instead of repeating them across migrations, controllers, or model constructors. It keeps your models clean and ensures new instances always start with consistent data.

  • Declare defaults directly on the model
  • Applied automatically when models are instantiated
  • Works alongside existing casts and fillable attributes
  • Reduces repetitive boilerplate in migrations and controllers
  • Simple, lightweight integration with any Eloquent model
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge