michaeldyrynda / laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models
MIT License
442 stars 46 forks source link

Add configuration option to set default UUID table name. Closes #125. #126

Closed joelmellon closed 9 months ago

joelmellon commented 9 months ago

Title says it all. Just create config/model-uuid.php and set default_column_name to whatever you want.


Note: The included ServiceProvider isn't used, but might be useful one day if additional items are added to config/model-uuid.php. It could also be auto loaded via composer.json. Instead of expecting the user to register the provider and publish the config, I simply updated the README with instructions on what to copy/paste.

With that said, I have no qualms removing the provider and package's config file from this PR.

Thanks for the great package, @michaeldyrynda!!

michaeldyrynda commented 9 months ago

Merged in e2f72e9

joelmellon commented 9 months ago

💯