Ejemplo n.º 1
0
 public function getListByGender($slug)
 {
     $currentMC = collect();
     $currentMC->name = \App\Gender::getGenderBySlug($slug)[0]->gender;
     $currentMC->fonticon = "";
     $projects = \App\Project::getProjectsByGender($slug);
     //dump($currentMC);
     return view('cosplaydesign.pages.lista', compact("projects", "currentMC"));
 }
Ejemplo n.º 2
0
 public static function getProjectsByGender($slug)
 {
     $gender = \App\Gender::getGenderBySlug($slug)[0]->id;
     return \App\Gender::find($gender)->projects;
 }