/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index($id) { $pergunta_id = $id; $opcoes = Opcao::opcaoComPergunta($pergunta_id); return view('admin.opcao', ['pergunta_id' => $pergunta_id, 'opcoes' => $opcoes]); }