laravel-property-bag icon indicating copy to clipboard operation
laravel-property-bag copied to clipboard

Add settings to any Laravel model.

Results 4 laravel-property-bag issues
Sort by recently updated
recently updated
newest added

Currently it is not possible to make any changes to the default PropertyBag model - but using the config value we can use a custom model.

I’m thinking about having some settings that are only available to premium users. Can we add middleware to UserSettings.php?

Hi! Something should be wrong here ... When I do something like this: ``` \App\models\User::withSetting("company", "name") ``` it performs this query: ``` select * from `property_bag` where `resource_type` = 'App\Models\User'...

@zachleigh - i know about `withSetting`. It is a solid solution, but i do not think it scales very well What would you say about this approach? If the model's...