Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean always returns false #183

Closed
bistory opened this issue Dec 20, 2022 · 6 comments
Closed

Boolean always returns false #183

bistory opened this issue Dec 20, 2022 · 6 comments

Comments

@bistory
Copy link

bistory commented Dec 20, 2022

Hi,

First, thanks for your packages, they are really great !

I started to test laravel-settings but found a bug. I have set a boolean setting like in the example, however, it always returns false...

I just created some test settings, a migration, enabled cache (file in local) and showed them with dd, here is what I have in DB :

Capture d’écran 2022-12-20 à 15 57 19

And here is what I get with dd()

Capture d’écran 2022-12-20 à 15 57 37

Are you able to reproduce this bug ?

Thanks 🥇

@rubenvanassche
Copy link
Member

Are you using caching?

@bistory
Copy link
Author

bistory commented Dec 21, 2022

Yes I am, this issue only happens when cache (file driver) is enabled

@rubenvanassche
Copy link
Member

Hmmm looks like your cache isn't cleared correctly. Caches are updated when you update a settings class and cleared when running php artisan settings:clear-cache. Does that last command fix the issue?

If not, could you reproduce this in a fresh application and send the repo to me.

@bistory
Copy link
Author

bistory commented Jan 6, 2023

Thanks a lot for your reply, however I will close this issue as I was told this week the project I was working on is abandonned... So I had to move on...

@bistory bistory closed this as completed Jan 6, 2023
@rubenvanassche
Copy link
Member

Oh that's sad to hear, good luck!

@bistory
Copy link
Author

bistory commented Jan 6, 2023

Oh that's sad to hear, good luck!

Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants