public function create() { $perfis = \App\PerfilUsuario::all(); $perfisSelect = array(); foreach ($perfis as $perfil) { $perfisSelect[$perfil->Id] = $perfil->Tipo; } return View('Usuario.create')->with('perfis', $perfisSelect); }
public function edit($id) { $perfis = \App\PerfilUsuario::all()->lists('tipo', 'id'); return view('Cliente.Edit')->with('perfis', $perfis); }