asantibanez / livewire-resource-time-grid

Laravel Livewire component to show Events by time and resource in a good looking grid
MIT License
221 stars 43 forks source link

Move Blade Directive to boot() #4

Closed barryvdh closed 3 years ago

barryvdh commented 3 years ago

The Blade Directive should be called in the boot() method, otherwise it will cause problems with Jetstream for example (eg. it's not 100% sure you get the same View instance because not all providers are registered yet)

barryvdh commented 3 years ago

For some reason the scripts aren't working for me, because @this doesn't return the property correctly, just a Proxy class :/ Not sure if that's an issue with Livewire 2 though.

asantibanez commented 3 years ago

Hey @barryvdh

Just fixed this one. Thanks!

PD: The Proxy class was also fixed. 💪