public static function socials($type = null, $data = null) { if ($type and $data) { return Social::where($type, $data)->get(); } return Social::all(); }