Esempio n. 1
0
 /**
  * Scope for checking if model is enabled
  * @param  Builder $query
  * @return Builder
  */
 public function scopeIsEnabled($query)
 {
     return $query->whereNotNull('is_enabled')->where('is_enabled', true);
 }