/** * Retorna a view inicial do Quiz */ public function getIndex() { $interesses['estilo'] = Interesse::all()->where('categoria', 'estilo'); $interesses['companhia'] = Interesse::all()->where('categoria', 'companhia'); $interesses['ambiente'] = Interesse::all()->where('categoria', 'ambiente'); $interesses['regioes'] = Interesse::all()->where('categoria', 'regioes'); $interesses['motivacoes'] = Interesse::all()->where('categoria', 'motivacoes'); $interesses['eventos'] = Interesse::all()->where('categoria', 'eventos'); return view("quiz.interesses", compact('interesses'))->with(['passo' => 1]); }
public function getAllinteresses() { return Interesse::all(); }