Samfield Hawb Bassey wrote
Advance model filtering using Laravel when method
Laravel models come with a special method call when, The when method provides us with the functionality to conditionally attach a query to our eloquent database query. The majority of us are used to the regular if and elseconditional statement, but the when method provides us with a neater and cleaner way to perform queries […]
November 13, 2020 in Laravel