public function filtro(Request $request)
 {
     $query = Vagas::query();
     $area = Request::get('area');
     $semestre = Request::get('semestre');
     $carga_horaria = Request::get('horas');
     $auxilio = Request::get('auxilio');
     if ($auxilio) {
         $query->where('auxilio', '>=', $auxilio);
     }
     if ($semestre) {
         $query->where('semestre', '>=', $semestre);
     }
     if ($carga_horaria) {
         $query->where('carga_horaria', '=', $carga_horaria);
     }
     if ($area) {
         $query->where('area', '=', $area);
     }
     $vagas = $query->get();
     return view('vagas.show', compact('vagas'));
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     Vagas::create($request->all());
     return redirect('vagas');
 }