public function scopePresentation($query, $id) { $presentation = Presentation::lists('name', 'id'); if ($id != "" && isset($presentation[$id])) { $query->where('presentation_id', $id); } }
public function scopePresentation($query, $id) { $presentation = Presentation::lists('name', 'id'); if ($id != "" && isset($presentation[$id])) { $query->where('presentation_id', $id); } }