I was trying to get the favorite items of a user when I noticed that no results are shown if the query is performed from blade or livewire. How can we call the method favorite() globally?
Context
Use this method in Blade or with Laravel Livewire
Possible implementation
Could be used like as a Helper function(?)
Your environment
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
Detailed description
I was trying to get the favorite items of a user when I noticed that no results are shown if the query is performed from blade or livewire. How can we call the method favorite() globally?
Context
Use this method in Blade or with Laravel Livewire
Possible implementation
Could be used like as a Helper function(?)
Your environment
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.