orderBy('sort')->get(); } $option = self::where([ ['table', '=', $table], ['column', '=', $column], ['key', '=', $key] ])->first(); return $option ? $option[$option_key] : ''; } public static function getById($id, $option_key = 'id') { $option = self::find($id); return $option ? $option[$option_key] : ''; } }