Weave Code
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

Laravel Model Settings Laravel Package

lukasss93/laravel-model-settings

Add per-model settings to Eloquent with defaults, validation rules, and optional config publishing. Store and retrieve settings directly on your models, initialize settings on creation, and keep your app flexible with PHP 8+ and Laravel 8+ support.

View on GitHub
Deep Wiki
Context7
6.1.0

Added

  • Added Laravel 10 support
6.0.0

Added

  • Added ability to initialize settings at model creation
  • Readded Laravel 8 support

Changed

  • Converted defaultSettings property to method
  • Converted settingsRules property to method
  • Converted PHPUnit tests to PestPHP tests
  • Renamed Glorand\Model\Settings namespace to Lukasss93\ModelSettings

Removed

  • Removed defaultSettings from model_settings.php config file
5.0.0

Added

  • Add support for Laravel 9 by @belzaaron
  • DROP Laravel 7,8 support
  • 8.0 min. php version
4.4.1

Fix

  • fix validation variable name
4.4.0

Added

  • Validation system for settings data
4.3.0

Added

  • Using another method name other than settings()
4.2.2

Fix param type

4.2.1

Added

  • PHP8 support
4.2.0

Added

  • Refactor the work with default settings (flatten arrays)
4.1.0

Added

  • Refactor unit tests
4.0.2

Added

  • Setup connection of the model in HasSettingsTableTrait
4.0.1

Added

  • Update README
4.0.0

Added

  • Add support for Laravel 8
  • Drop support for Laravel 5.8 and lower
  • Drop support for PHP 7.1 and lower
3.7.0

Added

  • HasSettingsField now adheres to $connection override on model Ref. task
3.6.7

Fix

  • code refactor
3.6.6

Fix

  • default configs for a table in model_settings.php config file
3.6.5

Fix

  • code refactor
  • use Cache facade instead of cache() helper function
3.6.4

Fix

  • github actions
3.6.3

Fix

  • "empty()" - to check if the model has empty setting
3.6.2

Fix

  • "exist()" - to check if the model has valid setting
3.6.0
  • add support for Laravel 7
3.5.5

Bugfix

3.5.1

Fix

  • Check column settings exists directly on the database table
3.5.0

Added

  • Use cache in case of Table Settings Ref. task
  • Refactor
3.4.2

Added

  • Manage array type settings
3.4.1

Added

  • Redis support
3.3.0

Added

  • Default settings on Model
3.2.0

Added

  • Compatibility with PSR-16, CacheInterface
3.1.1

Added

  • Test for console commands
3.1.0

Added

  • Configure persistence for settings in case of Field Type (HasSettingsField)
3.0.0

Added

  • Command to create the table for settings
  • Dynamic name for the settings table and field
2.0.0

Added

  • Console Commands
1.0.0

Added

  • Initial release
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor