コード例 #1
0
 public function index()
 {
     $socials = Social::all();
     return view("realestateadmin::social.index", ["socials" => $socials]);
 }
コード例 #2
0
ファイル: Laralum.php プロジェクト: ConsoleTVs/Laralum
 public static function socials($type = null, $data = null)
 {
     if ($type and $data) {
         return Social::where($type, $data)->get();
     }
     return Social::all();
 }