How to pass attributes in Laravel scope using name argument (PHP8 feature)
In my Setting model. I have a local scope that accepts $data array argument. The $data contains two keys group and property and any of them can be null as you can see in my query. public function scopeSettingFilters($query, array…