You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah. That's a problem. It's actually a problem with any lazy object. Laravel is full of those.
I've been thinking of maybe adding a save method, which would allow you to manually commit it. It would also have to save that state on the object, so that it doesn't run again when destructuring.
It's bad either way. I guess that's the tradeoff for using lazy objects.
I've just come across this, which is weird because its been working for ages, then suddeny I cant add abilities from Tinker.
Was there any update on this or a workaround?
running
Bouncer::allow('admin')->to('ban-users');
in tinker returnsSilber\Bouncer\Conductors\Lazy\ConductsAbilities
and never saves in the database
how do i save a lazy ability?
is it related to this? laravel/tinker#30
The text was updated successfully, but these errors were encountered: