Hi guys,
I'm retrieving Events
from the database and every time I get events from the database I want to check where active_from <= today
.
How am I able to define a global scope which will be used when I retrieve a model?
Here's shown how it's done softonsofa.com/laravel-how-to-define-and-use-eloquent-global-scopes/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community