Esempio n. 1
0
 private static function forTypeAndOrg($type, $org)
 {
     if (is_object($org)) {
         $org = $org->id;
     }
     $attrs = Attribute::whereRaw('`for` = ? AND organization_id = ?', [$type, $org])->get();
     return $attrs;
 }