Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $clusters = Cluster::all();
     if ($clusters->isEmpty()) {
         return view('cluster.index');
     }
     return view('cluster.index', compact('clusters'));
 }