public function getLayouts() { $layouts = Layouts::first(); return $layouts; //Retorna o Layout }
public function openConstrutor() { $style = ''; $script = ' '; $Layouts = $layouts = Layouts::orderBy('id_page', 'ASC')->get(); $Layouts = $Layouts->groupBy('id_page'); $dados = array('style' => $style, 'script' => $script); return view('construtor.index', compact('dados', 'Layouts')); }