This commit is contained in:
denisdulici
2018-10-20 16:29:48 +03:00
parent 0abf3eae57
commit bbec3dafc2
2 changed files with 5 additions and 4 deletions

View File

@ -56,7 +56,7 @@ class Category extends Model
*/
public function scopeType($query, $type)
{
return $query->where('type', $type);
return $query->whereIn('type', (array) $type);
}
/**