In situations, when you dealing with resource as binding, the quoteBinding() will fail because it always expects a string as $binding.
In my case, I store small files in the database, meaning that bindings contain resources, rather than strings.
Version: v4.2.6
Possible Solution
The quoteBinding() could perhaps be changed to accept and deal with resources. However, I'm not sure if the entire chain before invoking quoteBinding() should be refactored to deal with resources accordingly.
Similar issue in Laravel
I once encountered a similar issue in Laravel. Back then, I made the following pull request was made and merged into the framework: laravel/framework#53100
Sadly, I'm too unfamiliar with "DebugBar" code to be able to offer the same (at least for the moment).
Work-around
Thus far, the only way to avoid this is to disable debugbar (as far as I can see).
In situations, when you dealing with resource as binding, the
quoteBinding()will fail because it always expects a string as$binding.In my case, I store small files in the database, meaning that bindings contain resources, rather than strings.
Version:
v4.2.6Possible Solution
The
quoteBinding()could perhaps be changed to accept and deal with resources. However, I'm not sure if the entire chain before invokingquoteBinding()should be refactored to deal with resources accordingly.Similar issue in Laravel
I once encountered a similar issue in Laravel. Back then, I made the following pull request was made and merged into the framework: laravel/framework#53100
Sadly, I'm too unfamiliar with "DebugBar" code to be able to offer the same (at least for the moment).
Work-around
Thus far, the only way to avoid this is to disable debugbar (as far as I can see).