Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $domains = Domain::all();
     foreach ($domains as $domain) {
         $domain->nbr_concepts = count(\DB::table('concept_domain')->where('domain_id', $domain->id)->get());
     }
     return $domains;
 }
Ejemplo n.º 2
0
 public function getAll()
 {
     return Domain::all();
 }
Ejemplo n.º 3
0
 /**
  * Treat this method as a controller action.
  * Return view() or other content to display.
  */
 public function run()
 {
     return view("widgets.sidemenu", ['domains' => Domain::all()]);
 }
Ejemplo n.º 4
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return view('pages.domain.index', array('domain' => \App\Domain::all()));
 }
Ejemplo n.º 5
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $domains = Domain::all();
     return view('domains/index', compact('domains'));
 }
Ejemplo n.º 6
0
 /**
  * Treat this method as a controller action.
  * Return view() or other content to display.
  */
 public function run()
 {
     //
     return view("widgets.domain_index", ['domains' => \App\Domain::all()]);
 }