Skip to content

0.0.4

Compare
Choose a tag to compare
@tonysm tonysm released this 17 Jan 02:45
· 416 commits to main since this release

Added

  • DOM ID generation now strips out only the root namespaces of the model's FQCN. The root namespaces are configurable, so if anyone is using non-conventional namespaces, they should add their namespaces to the turbo-laravel.models_namespace config key. This way, we will respect nested-namespaces for models inside a sub folder (App\\Models\\Account\\User will generate account_user_id for existing instances and create_account_user for new instances, for example)

Changed

  • DOM ID generation now returns create_{$resource} instead of {$resource}_new for new model instances (still uses the prefix)