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

Models Laravel Package

laravel-lang/models

Adds localized names and attributes for Laravel Eloquent models via Laravel Lang. Plug-and-play translations for model labels across multiple languages to improve UI, validation messages, and admin panels. Install with composer and follow the docs for setup.

View on GitHub
Deep Wiki
Context7
1.7.0

Changed

1.6.0

Added

Changed

1.5.1

Changed

Fixed

  • Move laravel/pint to require-dev section by @guanguans in #52
1.5.0

Added

  • Add orderByTranslation scope for sorting by translation fields by @squiaios in #49
1.4.0

Added

  • Add translation scopes for Eloquent models by @squiaios in #47

Changed

1.3.2

Fixed

  • fix: translation handling to support array input in fill method by @squiaios in #46
1.3.1

Changed

1.3.0

Added

1.2.2

Fixed

  • Fixed an error in set and deleting unprotected localizations by @andrey-helldar in #42
1.2.1

Dependencies

  • Update laravel/prompts by @sotten in #40
1.2.0

Changed

  • The translationModelName method has been made public by @andrey-helldar in #39
1.1.0

Added

  • Added filtering of models loaded in relation when using eager loading by @andrey-helldar in #38
1.0.1

Fixed

1.0.0

Added

Changed

  • Conditions in TrimCast have been simplified by @andrey-helldar in #18
  • Improved work with the static data register by @andrey-helldar in #11
  • Optimized imports by @andrey-helldar in #3
  • Refactoring the HasTranslations trait by @andrey-helldar in #20
  • Renamed the console command for generating helper files for the IDE to lang:models-helper by @andrey-helldar in #35
  • Template for creating models switched to Laravel 11 style by @andrey-helldar in #22
  • The console command for creating models has been renamed to make:model-translation by @andrey-helldar in #26
  • The main trait HasTranslations has been unloaded from auxiliary methods by @andrey-helldar in #16
  • The model search form has been changed to select it from the list by @andrey-helldar in #27
  • Translation storage improvement by @andrey-helldar in #2
  • Updated testing settings by @andrey-helldar in #14
  • Validation methods are placed in separate classes by @andrey-helldar in #15

Removed

Fixed

  • Added adjustment of model namespace when passing as an argument by @andrey-helldar in #34
  • Added check for model existence during generation by @andrey-helldar in #28
  • Fixed locale column name comparison by @andrey-helldar in #17
  • Fixed an issue with creating a translation model for an existing parent model by @andrey-helldar in #24
  • Fixed eager loading by @andrey-helldar in #12
  • Fixed error: Call to undefined method ClassMap::get() by @andrey-helldar in #33
  • Fixed error: Class "\App\Models\UserTranslation" not found by @andrey-helldar in #32
  • Fixed test checking migration file by @andrey-helldar in #4
  • Fixed the template for the HasTranslations trait added to the parent model by @andrey-helldar in #31
  • Fixed unstable test by @andrey-helldar in #9
  • Not enough arguments (missing: "model"). by @andrey-helldar in #23
  • Reduced the number of queries to the database when deleting all translations by @andrey-helldar in #6
v1.0-RC1

Added

Changed

  • Conditions in TrimCast have been simplified by @andrey-helldar in #18
  • Improved work with the static data register by @andrey-helldar in #11
  • Optimized imports by @andrey-helldar in #3
  • Refactoring the HasTranslations trait by @andrey-helldar in #20
  • Renamed the console command for generating helper files for the IDE to lang:models-helper by @andrey-helldar in #35
  • Template for creating models switched to Laravel 11 style by @andrey-helldar in #22
  • The console command for creating models has been renamed to make:model-translation by @andrey-helldar in #26
  • The main trait HasTranslations has been unloaded from auxiliary methods by @andrey-helldar in #16
  • The model search form has been changed to select it from the list by @andrey-helldar in #27
  • Translation storage improvement by @andrey-helldar in #2
  • Updated testing settings by @andrey-helldar in #14
  • Validation methods are placed in separate classes by @andrey-helldar in #15

Removed

Fixed

  • Added adjustment of model namespace when passing as an argument by @andrey-helldar in #34
  • Added check for model existence during generation by @andrey-helldar in #28
  • Fixed locale column name comparison by @andrey-helldar in #17
  • Fixed an issue with creating a translation model for an existing parent model by @andrey-helldar in #24
  • Fixed eager loading by @andrey-helldar in #12
  • Fixed error: Call to undefined method ClassMap::get() by @andrey-helldar in #33
  • Fixed error: Class "\App\Models\UserTranslation" not found by @andrey-helldar in #32
  • Fixed test checking migration file by @andrey-helldar in #4
  • Fixed the template for the HasTranslations trait added to the parent model by @andrey-helldar in #31
  • Fixed unstable test by @andrey-helldar in #9
  • Not enough arguments (missing: "model"). by @andrey-helldar in #23
  • Reduced the number of queries to the database when deleting all translations by @andrey-helldar in #6
v1.0-BETA5

Added

  • Added check for existence of translation repository by @andrey-helldar in #29
  • Added setting a trait in case of its absence by @andrey-helldar in #30

Changed

  • Renamed the console command for generating helper files for the IDE to lang:models-helper by @andrey-helldar in #35
  • The console command for creating models has been renamed to make:model-translation by @andrey-helldar in #26
  • The model search form has been changed to select it from the list by @andrey-helldar in #27

Removed

Fixed

  • Added adjustment of model namespace when passing as an argument by @andrey-helldar in #34
  • Added check for model existence during generation by @andrey-helldar in #28
  • Fixed error: Call to undefined method ClassMap::get() by @andrey-helldar in #33
  • Fixed error: Class "\App\Models\UserTranslation" not found by @andrey-helldar in #32
  • Fixed the template for the HasTranslations trait added to the parent model by @andrey-helldar in #31
v1.0-BETA4

Fixed

  • Fixed an issue with creating a translation model for an existing parent model by @andrey-helldar in #24
  • Not enough arguments (missing: "model"). by @andrey-helldar in #23
v1.0-BETA3

Added

  • Added LocaleData type for passing to method arguments by @andrey-helldar in #13

Changed

Removed

Fixed

v1.0-BETA2

Added

Changed

Fixed

v1.0-ALPHA1

First Alpha Release

v1.0-BETA1

Changed

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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
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