public function index() { $socials = Social::all(); return view("realestateadmin::social.index", ["socials" => $socials]); }
public static function socials($type = null, $data = null) { if ($type and $data) { return Social::where($type, $data)->get(); } return Social::all(); }