thumbnail

Using withWhereHas()

Rawa Hamid
Rawa Hamid 1 min read
3 weeks ago April 21, 2024

using withWhereHas() method that simplifies cases where you have to repeat code used to both filter with whereHas and select the same record via with()