From c22f4e4bf8d1e865c94f56e9dcce9bb7078f56ee Mon Sep 17 00:00:00 2001 From: Gabriel-31415 Date: Wed, 30 Jun 2021 18:21:15 +0000 Subject: [PATCH] refatoracao submissao de projeto --- app/Endereco.php | 2 +- app/Http/Controllers/TrabalhoController.php | 216 ++++++-- app/Http/Requests/StoreTrabalho.php | 129 +++++ app/Http/Requests/UpdateTrabalho.php | 30 + app/Participante.php | 2 +- composer.json | 1 + composer.lock | 524 +++++++++++++++--- .../2021_06_30_144621_alter_table_users.php | 32 ++ .../views/componentes/participante.blade.php | 170 +++++- .../views/evento/formulario/anexos.blade.php | 49 +- .../evento/formulario/finalizar.blade.php | 3 +- .../evento/formulario/participantes.blade.php | 445 +++++++++------ .../views/evento/formulario/projeto.blade.php | 18 +- .../evento/formulario/proponente.blade.php | 10 +- .../views/evento/submeterTrabalho.blade.php | 287 +++++----- .../views/evento/visualizarEvento.blade.php | 2 +- .../projeto/editaFormulario/projeto.blade.php | 6 +- resources/views/proponente/projetos.blade.php | 6 +- .../views/proponente/projetosEdital.blade.php | 2 +- 19 files changed, 1446 insertions(+), 488 deletions(-) create mode 100644 app/Http/Requests/StoreTrabalho.php create mode 100644 app/Http/Requests/UpdateTrabalho.php create mode 100644 database/migrations/2021_06_30_144621_alter_table_users.php diff --git a/app/Endereco.php b/app/Endereco.php index 61160c0..73d16cd 100644 --- a/app/Endereco.php +++ b/app/Endereco.php @@ -12,7 +12,7 @@ class Endereco extends Model * @var array */ protected $fillable = [ - 'rua', 'numero', 'bairro', 'cidade','uf', 'cep', + 'rua', 'numero', 'bairro', 'cidade','uf', 'cep','complemento' ]; public function user(){ diff --git a/app/Http/Controllers/TrabalhoController.php b/app/Http/Controllers/TrabalhoController.php index 8cd771a..facf84c 100644 --- a/app/Http/Controllers/TrabalhoController.php +++ b/app/Http/Controllers/TrabalhoController.php @@ -2,8 +2,8 @@ namespace App\Http\Controllers; -use Auth; use PDF; +use Auth; use App\Area; use App\User; use App\Evento; @@ -31,7 +31,9 @@ use Illuminate\Http\Request; use App\Mail\SubmissaoTrabalho; use App\OutrasInfoParticipante; use Illuminate\Validation\Rule; +use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; +use App\Http\Requests\StoreTrabalho; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Validator; @@ -167,8 +169,8 @@ class TrabalhoController extends Controller $pasta = 'trabalhos/' . $request->editalId . '/' . $trabalho->id; - if(!(is_null($request->anexoCONSU)) ) { - $trabalho->anexoDecisaoCONSU = Storage::putFileAs($pasta, $request->anexoCONSU, "CONSU.pdf"); + if(!(is_null($request->anexoDecisaoCONSU)) ) { + $trabalho->anexoDecisaoCONSU = Storage::putFileAs($pasta, $request->anexoDecisaoCONSU, "CONSU.pdf"); } if (!(is_null($request->anexoComiteEtica))) { $trabalho->anexoAutorizacaoComiteEtica = Storage::putFileAs($pasta, $request->anexoComiteEtica, "Comite_de_etica.pdf"); @@ -182,8 +184,8 @@ class TrabalhoController extends Controller if (!(is_null($request->anexoLattesCoordenador))) { $trabalho->anexoLattesCoordenador = Storage::putFileAs($pasta, $request->anexoLattesCoordenador, "Lattes_Coordenador.pdf"); } - if (!(is_null($request->anexoPlanilha))) { - $trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilha, "Planilha.". $request->file('anexoPlanilha')->extension()); + if (!(is_null($request->anexoPlanilhaPontuacao))) { + $trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilhaPontuacao, "Planilha.". $request->file('anexoPlanilhaPontuacao')->extension()); } $trabalho->update(); @@ -197,7 +199,7 @@ class TrabalhoController extends Controller public function validarAnexosRascunho(Request $request, $trabalho){ $validator = Validator::make($trabalho->getAttributes(),[ - 'anexoPlanilhaPontuacao' => $request->anexoPlanilha==null?['planilha']:[], + 'anexoPlanilhaPontuacao' => $request->anexoPlanilhaPontuacao==null?['planilha']:[], ]); if ($validator->fails()) { @@ -222,11 +224,11 @@ class TrabalhoController extends Controller //Anexo Decisão CONSU if( $evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM') { - if(isset($request->anexoCONSU)){ + if(isset($request->anexoDecisaoCONSU)){ if(Storage::disk()->exists($trabalho->anexoDecisaoCONSU)) { Storage::delete($trabalho->anexoDecisaoCONSU); } - $trabalho->anexoDecisaoCONSU = Storage::putFileAs($pasta, $request->anexoCONSU, 'CONSU.pdf'); + $trabalho->anexoDecisaoCONSU = Storage::putFileAs($pasta, $request->anexoDecisaoCONSU, 'CONSU.pdf'); } } @@ -235,7 +237,7 @@ class TrabalhoController extends Controller if(Storage::disk()->exists($trabalho->anexoAutorizacaoComiteEtica)) { Storage::delete($trabalho->anexoAutorizacaoComiteEtica); } - $trabalho->anexoAutorizacaoComiteEtica = Storage::putFileAs($pasta, $request->anexoComiteEtica, 'Comite_de_etica.pdf'); + $trabalho->anexoAutorizacaoComiteEtica = Storage::putFileAs($pasta, $request->anexoAutorizacaoComiteEtica, 'Comite_de_etica.pdf'); } elseif( isset($request->justificativaAutorizacaoEtica)){ if(Storage::disk()->exists($trabalho->justificativaAutorizacaoEtica)) { @@ -253,11 +255,11 @@ class TrabalhoController extends Controller } //Anexo Planilha - if( isset($request->anexoPlanilha)){ + if( isset($request->anexoPlanilhaPontuacao)){ if(Storage::disk()->exists($trabalho->anexoPlanilhaPontuacao)) { Storage::delete($trabalho->anexoPlanilhaPontuacao); } - $trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilha, "Planilha.". $request->file('anexoPlanilha')->extension()); + $trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilhaPontuacao, "Planilha.". $request->file('anexoPlanilhaPontuacao')->extension()); } // Anexo grupo pesquisa @@ -265,7 +267,7 @@ class TrabalhoController extends Controller if(Storage::disk()->exists($trabalho->anexoGrupoPesquisa)) { Storage::delete($trabalho->anexoGrupoPesquisa); } - $trabalho->anexoGrupoPesquisa = Storage::putFileAs($pasta, $request->anexoPlanilha, "Grupo_de_pesquisa.". $request->file('anexoGrupoPesquisa')->extension()); + $trabalho->anexoGrupoPesquisa = Storage::putFileAs($pasta, $request->anexoGrupoPesquisa, "Grupo_de_pesquisa.". $request->file('anexoGrupoPesquisa')->extension()); } return $trabalho; @@ -278,14 +280,14 @@ class TrabalhoController extends Controller //Anexo Decisão CONSU if( $evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM') { - if( isset($request->anexoCONSU)){ - $trabalho->anexoDecisaoCONSU = Storage::putFileAs($pasta, $request->anexoCONSU, 'CONSU.pdf'); + if( isset($request->anexoDecisaoCONSU)){ + $trabalho->anexoDecisaoCONSU = Storage::putFileAs($pasta, $request->anexoDecisaoCONSU, 'CONSU.pdf'); } } //Autorização ou Justificativa - if( isset($request->anexoComiteEtica)){ - $trabalho->anexoAutorizacaoComiteEtica = Storage::putFileAs($pasta, $request->anexoComiteEtica, 'Comite_de_etica.pdf'); + if( isset($request->anexoAutorizacaoComiteEtica)){ + $trabalho->anexoAutorizacaoComiteEtica = Storage::putFileAs($pasta, $request->anexoAutorizacaoComiteEtica, 'Comite_de_etica.pdf'); } elseif( isset($request->justificativaAutorizacaoEtica)){ $trabalho->justificativaAutorizacaoEtica = Storage::putFileAs($pasta, $request->justificativaAutorizacaoEtica, 'Justificativa.pdf'); @@ -297,8 +299,8 @@ class TrabalhoController extends Controller } //Anexo Planilha - if( isset($request->anexoPlanilha)){ - $trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilha, "Planilha.". $request->file('anexoPlanilha')->extension()); + if( isset($request->anexoPlanilhaPontuacao)){ + $trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilhaPontuacao, "Planilha.". $request->file('anexoPlanilhaPontuacao')->extension()); } // Anexo grupo pesquisa @@ -456,9 +458,9 @@ class TrabalhoController extends Controller $pasta = 'trabalhos/' . $request->editalId . '/' . $trabalho->id; - if (!(is_null($request->anexoCONSU))) { + if (!(is_null($request->anexoDecisaoCONSU))) { Storage::delete($trabalho->anexoDecisaoCONSU); - $trabalho->anexoDecisaoCONSU = Storage::putFileAs($pasta, $request->anexoCONSU, "CONSU.pdf"); + $trabalho->anexoDecisaoCONSU = Storage::putFileAs($pasta, $request->anexoDecisaoCONSU, "CONSU.pdf"); } if (!(is_null($request->anexoProjeto))) { @@ -476,9 +478,9 @@ class TrabalhoController extends Controller $trabalho->anexoLattesCoordenador = Storage::putFileAs($pasta, $request->anexoLattesCoordenador, "Latter_Coordenador.pdf"); } - if (!(is_null($request->anexoPlanilha))) { + if (!(is_null($request->anexoPlanilhaPontuacao))) { Storage::delete($trabalho->anexoLattesCoordenador); - $trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilha, "Planilha.pdf"); + $trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilhaPontuacao, "Planilha.pdf"); } //atualizando projeto $trabalho->update(); @@ -627,7 +629,8 @@ class TrabalhoController extends Controller $participantes = $projeto->participantes; foreach ($participantes as $participante) { $plano = $participante->planoTrabalho; - $plano->delete(); + if($plano) + $plano->delete(); $participante->delete(); } @@ -870,33 +873,159 @@ class TrabalhoController extends Controller return abort(404); } - public function salvar(Request $request) { - try { + // try { - $edital = Evento::find($request->editalId); - $hoje = now(); - if (!($edital->inicioSubmissao < $hoje && $edital->fimSubmissao >= $hoje)) { - return redirect()->route('inicial')->with(['error'=> 0, 'mensagem' => 'As submissões para o edital '. $edital->titulo .' foram encerradas.']); - } + // $edital = Evento::find($request->editalId); + // $hoje = now(); + // if (!($edital->inicioSubmissao < $hoje && $edital->fimSubmissao >= $hoje)) { + // return redirect()->route('inicial')->with(['error'=> 0, 'mensagem' => 'As submissões para o edital '. $edital->titulo .' foram encerradas.']); + // } - $projeto = $this->atribuirDados($request, $edital); - $projeto->save(); - // Email de submissão - // $subject = "Submissão de Trabalho"; - // $proponente = Auth()->user(); - // Mail::to($proponente->email)->send(new SubmissaoTrabalho($proponente, $subject, $edital, $projeto)); - $id = $projeto->id; - Notification::send(Auth::user(), new SubmissaoNotification($id)); + // $projeto = $this->atribuirDados($request, $edital); + // $projeto->save(); + // // Email de submissão + // // $subject = "Submissão de Trabalho"; + // // $proponente = Auth()->user(); + // // Mail::to($proponente->email)->send(new SubmissaoTrabalho($proponente, $subject, $edital, $projeto)); + // $id = $projeto->id; + // Notification::send(Auth::user(), new SubmissaoNotification($id)); - // Salvando participantes - $this->salvarParticipantes($request, $edital, $projeto); + // // Salvando participantes + // $this->salvarParticipantes($request, $edital, $projeto); + + + // return redirect(route('proponente.projetos'))->with(['mensagem' => 'Projeto submetido com sucesso!']); + // } catch (\Throwable $th) { + // return back()->with(['mensagem' => $th->getMessage()]); + // } + // foreach ($request->marcado as $key => $value) { + // $user = User::firstOrCreate([ + // ['email' => $request->email[$value]], + // [ + // 'name' => $request->name[$value], 'instituicao' => $request->instituicao[$value], + // 'cpf' => $request->cpf[$value], 'celular' => $request->celular[$value], + // ] + // ]); + // $participante = Participante::create([ + // 'rg' => $request->rg[$value], 'data_de_nascimento'=> $request->data_de_nascimento[$value], + // 'curso' => $request->curso[$value], 'turno' => $request->turno[$value], + // 'ordem_prioridade'=> $request->ordem_prioridade[$value],'periodo_atual' => $request->periodo_atual[$value], + // 'total_periodos' => $request->total_periodos[$value],'media_do_curso'=> $request->media_do_curso[$value] + // ]); + // $user->endereco()->create([ + // 'rua' => $request->rua[$value], + // 'numero' => $request->numero[$value], + // 'bairro' => $request->bairro[$value], + // 'cidade' => $request->cidade[$value], + // 'uf' => $request->uf[$value], + // 'cep' => $request->cep[$value], + // 'complemento' => $request->complemento[$value], + // ]); + // $user->participantes()->save($participante); + // $trabalho->participantes()->save($participante); + // } + + public function salvar(StoreTrabalho $request) { + try { - return redirect(route('proponente.projetos'))->with(['mensagem' => 'Projeto submetido com sucesso!']); + + + if (!$request->has('rascunho') ) { + $request->merge([ + 'status' => 'submetido' + ]); + } + $evento = Evento::find($request->editalId); + $request->merge([ + 'coordenador_id' => $evento->coordenadorComissao->id + ]); + + DB::beginTransaction(); + + $trabalho = Auth::user()->proponentes->trabalhos() + ->create($request->except([ + 'anexoProjeto', 'anexoDecisaoCONSU','anexoPlanilhaPontuacao', + 'anexoLattesCoordenador','anexoGrupoPesquisa','anexoAutorizacaoComiteEtica', + 'justificativaAutorizacaoEtica' + ])); + if($request->has('marcado')){ + foreach ($request->marcado as $key => $part) { + $part = intval($part); + + $passwordTemporario = Str::random(8); + $data['name'] = $request->name[$part]; + $data['email'] = $request->email[$part]; + $data['password'] = bcrypt($passwordTemporario); + $data['data_de_nascimento'] = $request->data_de_nascimento[$part]; + $data['cpf'] = $request->cpf[$part]; + $data['tipo'] = 'participante'; + $data['funcao_participante_id'] = 4; + $data['rg'] = $request->rg[$part]; + $data['celular'] = $request->celular[$part]; + $data['cep'] = $request->cep[$part]; + $data['uf'] = $request->uf[$part]; + $data['cidade'] = $request->cidade[$part]; + $data['rua'] = $request->rua[$part]; + $data['numero'] = $request->numero[$part]; + $data['complemento'] = $request->complemento[$part]; + $data['instituicao'] = $request->instituicao[$part]; + $data['total_periodos'] = $request->total_periodos[$part]; + $data['curso'] = $request->curso[$part]; + $data['turno'] = $request->turno[$part]; + $data['periodo_atual'] = $request->periodo_atual[$part]; + $data['ordem_prioridade'] = $request->ordem_prioridade[$part]; + $data['media_do_curso'] = $request->media_do_curso[$part]; + $data['nomePlanoTrabalho'] = $request->nomePlanoTrabalho[$part]; + + $user = User::where('email' , $data['email'])->first(); + if (!$user){ + $data['usuarioTemp'] = true; + $user = User::create($data); + $endereco = Endereco::create($data); + $endereco->user()->save($user); + } + $participante = $user->participantes->where('trabalho_id', $trabalho->id)->first(); + if (!$participante){ + $participante = Participante::create($data); + } + + $user->participantes()->save($participante); + $trabalho->participantes()->save($participante); + + if ( $request->has('anexoPlanoTrabalho') ) { + $path = 'trabalhos/' . $evento->id . '/' . $trabalho->id .'/'; + $nome = $data['nomePlanoTrabalho'] .".pdf"; + $file = $request->anexoPlanoTrabalho[$part] ; + Storage::putFileAs($path, $file, $nome); + $arquivo = new Arquivo(); + $arquivo->titulo = $data['nomePlanoTrabalho']; + $arquivo->nome = $path . $nome; + $arquivo->trabalhoId = $trabalho->id; + $arquivo->data = now(); + $arquivo->participanteId = $participante->id; + $arquivo->versaoFinal = true; + $arquivo->save(); + + } + + } + } + $evento->trabalhos()->save($trabalho); + + $pasta = 'trabalhos/' . $evento->id . '/' . $trabalho->id; + $trabalho = $this->armazenarAnexosFinais($request, $pasta, $trabalho, $evento); + $trabalho->save(); + + DB::commit(); + + return redirect(route('proponente.projetos'))->with(['mensagem' => 'Proposta submetida!']); } catch (\Throwable $th) { - return back()->with(['mensagem' => $th->getMessage()]); + DB::rollback(); + return redirect(route('proponente.projetos'))->with(['mensagem' => $th->getMessage()]); } + } @@ -1095,7 +1224,8 @@ class TrabalhoController extends Controller $participantesExcluidos = $participantes->diff($participantesPermanecem); foreach ($participantesExcluidos as $participante) { $plano = $participante->planoTrabalho; - $plano->delete(); + if($plano) + $plano->delete(); $participante->delete(); } diff --git a/app/Http/Requests/StoreTrabalho.php b/app/Http/Requests/StoreTrabalho.php new file mode 100644 index 0000000..544dd0d --- /dev/null +++ b/app/Http/Requests/StoreTrabalho.php @@ -0,0 +1,129 @@ + ['required', 'string'], + 'marcado.*' => ['required'], + 'titulo' => ['required', 'string'], + 'grande_area_id' => ['required', 'string'], + 'area_id' => ['required', 'string'], + 'sub_area_id' => ['required', 'string'], + 'linkLattesEstudante' => ['required', 'string'], + 'pontuacaoPlanilha' => ['required', 'string'], + 'linkGrupoPesquisa' => ['required', 'string'], + 'anexoProjeto' => ['required', 'mimes:pdf'], + 'anexoDecisaoCONSU' => ['required', 'mimes:pdf'], + 'anexoPlanilhaPontuacao' => ['required'], + 'anexoLattesCoordenador' => ['required', 'mimes:pdf'], + 'anexoGrupoPesquisa' => ['required', 'mimes:pdf'], + 'anexoAutorizacaoComiteEtica' => [Rule::requiredIf($this->justificativaAutorizacaoEtica == null)], + 'justificativaAutorizacaoEtica' => [Rule::requiredIf($this->anexoAutorizacaoComiteEtica == null)], + + + ]; + if($this->has('marcado')){ + foreach ($this->get('marcado') as $key => $value) { + if( intval($value) == $key){ + //user + $rules['name.'.$value] = ['required', 'string']; + $rules['email.'.$value] = ['required', 'string']; + $rules['instituicao.'.$value] = ['required', 'string']; + $rules['cpf.'.$value] = ['required', 'string']; + $rules['celular.'.$value] = ['required', 'string']; + //endereco + $rules['rua.'.$value] = ['required', 'string']; + $rules['numero.'.$value] = ['required', 'string']; + $rules['bairro.'.$value] = ['required', 'string']; + $rules['cidade.'.$value] = ['required', 'string']; + $rules['uf.'.$value] = ['required', 'string']; + $rules['cep.'.$value] = ['required', 'string']; + $rules['complemento.'.$value] = ['required', 'string']; + //participante + $rules['rg.'.$value] = ['required', 'string']; + $rules['data_de_nascimento.'.$value] = ['required', 'string']; + $rules['curso.'.$value] = ['required', 'string']; + $rules['turno.'.$value] = ['required', 'string']; + $rules['ordem_prioridade.'.$value] = ['required', 'string']; + $rules['periodo_atual.'.$value] = ['required', 'string']; + $rules['total_periodos.'.$value] = ['required', 'string']; + $rules['media_do_curso.'.$value] = ['required', 'string']; + $rules['anexoPlanoTrabalho.'.$value] = ['required']; + $rules['nomePlanoTrabalho.'.$value] = ['required', 'string']; + + } + } + + } + // dd($rules); + + if ($this->has('rascunho')) { + return [ + + ]; + }else{ + return $rules; + } + + } + + public function messages() + { + + return [ + 'titulo.required' => 'O :attribute é obrigatório', + 'marcado.*.required' => 'Por favor selcione algum participante, é obrigatório', + 'grande_area_id.required' => 'O campo grande área é obrigatório', + 'anexoPlanoTrabalho.*.required' => 'O :attribute é obrigatório', + 'anexoProjeto.required' => 'O :attribute é obrigatório', + 'cpf.*.required' => 'O cpf é obrigatório', + 'name.*.required' => 'O :attribute é obrigatório', + 'email.*.required' => 'O :attribute é obrigatório', + 'instituicao.*.required' => 'O :attribute é obrigatório', + 'emailParticipante.*.required' => 'O :attribute é obrigatório', + 'celular.*.required' => 'O :attribute é obrigatório', + 'rua.*.required' => 'O :attribute é obrigatório', + 'numero.*.required' => 'O :attribute é obrigatório', + 'bairro.*.required' => 'O :attribute é obrigatório', + 'cidade.*.required' => 'O :attribute é obrigatório', + 'uf.*.required' => 'O :attribute é obrigatório', + 'cep.*.required' => 'O :attribute é obrigatório', + 'complemento.*.required' => 'O :attribute é obrigatório', + 'rg.*.required' => 'O :attribute é obrigatório', + 'data_de_nascimento.*.required' => 'O :attribute é obrigatório', + 'curso.*.required' => 'O :attribute é obrigatório', + 'turno.*.required' => 'O :attribute é obrigatório', + 'ordem_prioridade.*.required' => 'O :attribute é obrigatório', + 'periodo_atual.*.required' => 'O :attribute é obrigatório', + 'total_periodos.*.required' => 'O :attribute é obrigatório', + 'media_do_curso.*.required' => 'O :attribute é obrigatório', + 'anexoPlanoTrabalho.*.required' => 'O :attribute é obrigatório', + 'nomePlanoTrabalho.*.required' => 'O :attribute é obrigatório', + ]; + } +} diff --git a/app/Http/Requests/UpdateTrabalho.php b/app/Http/Requests/UpdateTrabalho.php new file mode 100644 index 0000000..1cbb2b6 --- /dev/null +++ b/app/Http/Requests/UpdateTrabalho.php @@ -0,0 +1,30 @@ +belongsTo('App\User'); diff --git a/composer.json b/composer.json index 9adfb23..1611d23 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ "require": { "php": "^7.2", "barryvdh/laravel-dompdf": "^0.9.0", + "doctrine/dbal": "^2.12.1", "fideloper/proxy": "^4.0", "geekcom/validator-docs": "^3.4", "guzzlehttp/guzzle": "^6.5", diff --git a/composer.lock b/composer.lock index ba8c976..38d6467 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3207e2b84c84b9381475a4fa738eca3e", + "content-hash": "a7ad1113629bd318dc8dbe9e51d021a1", "packages": [ { "name": "barryvdh/laravel-dompdf", @@ -72,6 +72,350 @@ ], "time": "2020-12-27T12:05:53+00:00" }, + { + "name": "doctrine/cache", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/doctrine/cache.git", + "reference": "c9622c6820d3ede1e2315a6a377ea1076e421d88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/cache/zipball/c9622c6820d3ede1e2315a6a377ea1076e421d88", + "reference": "c9622c6820d3ede1e2315a6a377ea1076e421d88", + "shasum": "" + }, + "require": { + "php": "~7.1 || ^8.0" + }, + "conflict": { + "doctrine/common": ">2.2,<2.4", + "psr/cache": ">=3" + }, + "require-dev": { + "alcaeus/mongo-php-adapter": "^1.1", + "cache/integration-tests": "dev-master", + "doctrine/coding-standard": "^8.0", + "mongodb/mongodb": "^1.1", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "predis/predis": "~1.0", + "psr/cache": "^1.0 || ^2.0", + "symfony/cache": "^4.4 || ^5.2" + }, + "suggest": { + "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.", + "homepage": "https://www.doctrine-project.org/projects/cache.html", + "keywords": [ + "abstraction", + "apcu", + "cache", + "caching", + "couchdb", + "memcached", + "php", + "redis", + "xcache" + ], + "support": { + "issues": "https://github.com/doctrine/cache/issues", + "source": "https://github.com/doctrine/cache/tree/2.0.3" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcache", + "type": "tidelift" + } + ], + "time": "2021-05-25T09:43:04+00:00" + }, + { + "name": "doctrine/dbal", + "version": "2.13.2", + "source": { + "type": "git", + "url": "https://github.com/doctrine/dbal.git", + "reference": "8dd39d2ead4409ce652fd4f02621060f009ea5e4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/8dd39d2ead4409ce652fd4f02621060f009ea5e4", + "reference": "8dd39d2ead4409ce652fd4f02621060f009ea5e4", + "shasum": "" + }, + "require": { + "doctrine/cache": "^1.0|^2.0", + "doctrine/deprecations": "^0.5.3", + "doctrine/event-manager": "^1.0", + "ext-pdo": "*", + "php": "^7.1 || ^8" + }, + "require-dev": { + "doctrine/coding-standard": "9.0.0", + "jetbrains/phpstorm-stubs": "2020.2", + "phpstan/phpstan": "0.12.81", + "phpunit/phpunit": "^7.5.20|^8.5|9.5.5", + "squizlabs/php_codesniffer": "3.6.0", + "symfony/cache": "^4.4", + "symfony/console": "^2.0.5|^3.0|^4.0|^5.0", + "vimeo/psalm": "4.6.4" + }, + "suggest": { + "symfony/console": "For helpful console commands such as SQL execution and import of files." + }, + "bin": [ + "bin/doctrine-dbal" + ], + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\DBAL\\": "lib/Doctrine/DBAL" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + } + ], + "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", + "homepage": "https://www.doctrine-project.org/projects/dbal.html", + "keywords": [ + "abstraction", + "database", + "db2", + "dbal", + "mariadb", + "mssql", + "mysql", + "oci8", + "oracle", + "pdo", + "pgsql", + "postgresql", + "queryobject", + "sasql", + "sql", + "sqlanywhere", + "sqlite", + "sqlserver", + "sqlsrv" + ], + "support": { + "issues": "https://github.com/doctrine/dbal/issues", + "source": "https://github.com/doctrine/dbal/tree/2.13.2" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fdbal", + "type": "tidelift" + } + ], + "time": "2021-06-18T21:48:39+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "v0.5.3", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "9504165960a1f83cc1480e2be1dd0a0478561314" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/9504165960a1f83cc1480e2be1dd0a0478561314", + "reference": "9504165960a1f83cc1480e2be1dd0a0478561314", + "shasum": "" + }, + "require": { + "php": "^7.1|^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^6.0|^7.0|^8.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0", + "psr/log": "^1.0" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/v0.5.3" + }, + "time": "2021-03-21T12:59:47+00:00" + }, + { + "name": "doctrine/event-manager", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/event-manager.git", + "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/41370af6a30faa9dc0368c4a6814d596e81aba7f", + "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/common": "<2.9@dev" + }, + "require-dev": { + "doctrine/coding-standard": "^6.0", + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\": "lib/Doctrine/Common" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + } + ], + "description": "The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.", + "homepage": "https://www.doctrine-project.org/projects/event-manager.html", + "keywords": [ + "event", + "event dispatcher", + "event manager", + "event system", + "events" + ], + "support": { + "issues": "https://github.com/doctrine/event-manager/issues", + "source": "https://github.com/doctrine/event-manager/tree/1.1.x" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fevent-manager", + "type": "tidelift" + } + ], + "time": "2020-05-29T18:28:51+00:00" + }, { "name": "doctrine/inflector", "version": "2.0.3", @@ -511,16 +855,16 @@ }, { "name": "geekcom/validator-docs", - "version": "3.5.2", + "version": "3.5.3", "source": { "type": "git", "url": "https://github.com/geekcom/validator-docs.git", - "reference": "92eb11c55081e6cfe0594d58ab0232e0c6980cab" + "reference": "94064a98379dca1e781bd358e4c10d7a1cff0020" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/geekcom/validator-docs/zipball/92eb11c55081e6cfe0594d58ab0232e0c6980cab", - "reference": "92eb11c55081e6cfe0594d58ab0232e0c6980cab", + "url": "https://api.github.com/repos/geekcom/validator-docs/zipball/94064a98379dca1e781bd358e4c10d7a1cff0020", + "reference": "94064a98379dca1e781bd358e4c10d7a1cff0020", "shasum": "" }, "require": { @@ -532,8 +876,7 @@ "php-coveralls/php-coveralls": "^2.2", "phpstan/phpstan": "^0.12.5", "phpunit/phpunit": "^8.4|^9.4", - "squizlabs/php_codesniffer": "*", - "symplify/changelog-linker": "^8.3" + "squizlabs/php_codesniffer": "*" }, "type": "library", "extra": { @@ -561,15 +904,15 @@ "description": "Biblioteca para validação de Título de Eleitor, CPF, CNPJ, NIS e CNH", "support": { "issues": "https://github.com/geekcom/validator-docs/issues", - "source": "https://github.com/geekcom/validator-docs/tree/3.5.2" + "source": "https://github.com/geekcom/validator-docs/tree/3.5.3" }, "funding": [ { - "url": "https://gumroad.com/geekcom", + "url": "https://nubank.com.br/pagar/518o5/zVBzxd00Sb", "type": "custom" } ], - "time": "2021-04-23T00:05:14+00:00" + "time": "2021-06-29T20:08:48+00:00" }, { "name": "guzzlehttp/guzzle", @@ -774,16 +1117,16 @@ }, { "name": "laravel/framework", - "version": "v6.20.27", + "version": "v6.20.29", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "92c0417e60efc39bc556ba5dfc9b20a56f7848fb" + "reference": "00fa9c04aed10d68481f5757b89da0e6798f53b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/92c0417e60efc39bc556ba5dfc9b20a56f7848fb", - "reference": "92c0417e60efc39bc556ba5dfc9b20a56f7848fb", + "url": "https://api.github.com/repos/laravel/framework/zipball/00fa9c04aed10d68481f5757b89da0e6798f53b3", + "reference": "00fa9c04aed10d68481f5757b89da0e6798f53b3", "shasum": "" }, "require": { @@ -923,7 +1266,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-05-11T14:00:28+00:00" + "time": "2021-06-22T13:41:06+00:00" }, { "name": "laravel/tinker", @@ -1049,16 +1392,16 @@ }, { "name": "league/commonmark", - "version": "1.6.2", + "version": "1.6.5", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "7d70d2f19c84bcc16275ea47edabee24747352eb" + "reference": "44ffd8d3c4a9133e4bd0548622b09c55af39db5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/7d70d2f19c84bcc16275ea47edabee24747352eb", - "reference": "7d70d2f19c84bcc16275ea47edabee24747352eb", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/44ffd8d3c4a9133e4bd0548622b09c55af39db5f", + "reference": "44ffd8d3c4a9133e4bd0548622b09c55af39db5f", "shasum": "" }, "require": { @@ -1076,7 +1419,7 @@ "github/gfm": "0.29.0", "michelf/php-markdown": "~1.4", "mikehaertl/php-shellcommand": "^1.4", - "phpstan/phpstan": "^0.12", + "phpstan/phpstan": "^0.12.90", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.2", "scrutinizer/ocular": "^1.5", "symfony/finder": "^4.2" @@ -1146,20 +1489,20 @@ "type": "tidelift" } ], - "time": "2021-05-12T11:39:41+00:00" + "time": "2021-06-26T11:57:13+00:00" }, { "name": "league/flysystem", - "version": "1.1.3", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "9be3b16c877d477357c015cec057548cf9b2a14a" + "reference": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/9be3b16c877d477357c015cec057548cf9b2a14a", - "reference": "9be3b16c877d477357c015cec057548cf9b2a14a", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/f3ad69181b8afed2c9edf7be5a2918144ff4ea32", + "reference": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32", "shasum": "" }, "require": { @@ -1175,7 +1518,6 @@ "phpunit/phpunit": "^8.5.8" }, "suggest": { - "ext-fileinfo": "Required for MimeType", "ext-ftp": "Allows you to use FTP server storage", "ext-openssl": "Allows you to use FTPS server storage", "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", @@ -1233,7 +1575,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/1.x" + "source": "https://github.com/thephpleague/flysystem/tree/1.1.4" }, "funding": [ { @@ -1241,7 +1583,7 @@ "type": "other" } ], - "time": "2020-08-23T07:39:11+00:00" + "time": "2021-06-23T21:56:05+00:00" }, { "name": "league/mime-type-detection", @@ -1397,16 +1739,16 @@ }, { "name": "nesbot/carbon", - "version": "2.48.1", + "version": "2.50.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "8d1f50f1436fb4b05e7127360483dd9c6e73da16" + "reference": "f47f17d17602b2243414a44ad53d9f8b9ada5fdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/8d1f50f1436fb4b05e7127360483dd9c6e73da16", - "reference": "8d1f50f1436fb4b05e7127360483dd9c6e73da16", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/f47f17d17602b2243414a44ad53d9f8b9ada5fdb", + "reference": "f47f17d17602b2243414a44ad53d9f8b9ada5fdb", "shasum": "" }, "require": { @@ -1458,15 +1800,15 @@ { "name": "Brian Nesbitt", "email": "brian@nesbot.com", - "homepage": "http://nesbot.com" + "homepage": "https://markido.com" }, { "name": "kylekatarnls", - "homepage": "http://github.com/kylekatarnls" + "homepage": "https://github.com/kylekatarnls" } ], "description": "An API extension for DateTime that supports 281 different languages.", - "homepage": "http://carbon.nesbot.com", + "homepage": "https://carbon.nesbot.com", "keywords": [ "date", "datetime", @@ -1486,7 +1828,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T22:08:38+00:00" + "time": "2021-06-28T22:38:45+00:00" }, { "name": "nikic/php-parser", @@ -2353,16 +2695,16 @@ }, { "name": "symfony/console", - "version": "v4.4.25", + "version": "v4.4.26", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "a62acecdf5b50e314a4f305cd01b5282126f3095" + "reference": "9aa1eb46c1b12fada74dc0c529e93d1ccef22576" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/a62acecdf5b50e314a4f305cd01b5282126f3095", - "reference": "a62acecdf5b50e314a4f305cd01b5282126f3095", + "url": "https://api.github.com/repos/symfony/console/zipball/9aa1eb46c1b12fada74dc0c529e93d1ccef22576", + "reference": "9aa1eb46c1b12fada74dc0c529e93d1ccef22576", "shasum": "" }, "require": { @@ -2422,7 +2764,7 @@ "description": "Eases the creation of beautiful and testable command line interfaces", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/console/tree/v4.4.25" + "source": "https://github.com/symfony/console/tree/v4.4.26" }, "funding": [ { @@ -2438,7 +2780,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T11:20:16+00:00" + "time": "2021-06-06T09:12:27+00:00" }, { "name": "symfony/css-selector", @@ -2643,16 +2985,16 @@ }, { "name": "symfony/error-handler", - "version": "v4.4.25", + "version": "v4.4.26", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "310a756cec00d29d89a08518405aded046a54a8b" + "reference": "4001f01153d0eb5496fe11d8c76d1e56b47fdb88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/310a756cec00d29d89a08518405aded046a54a8b", - "reference": "310a756cec00d29d89a08518405aded046a54a8b", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/4001f01153d0eb5496fe11d8c76d1e56b47fdb88", + "reference": "4001f01153d0eb5496fe11d8c76d1e56b47fdb88", "shasum": "" }, "require": { @@ -2692,7 +3034,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v4.4.25" + "source": "https://github.com/symfony/error-handler/tree/v4.4.26" }, "funding": [ { @@ -2708,7 +3050,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:39:37+00:00" + "time": "2021-06-24T07:57:22+00:00" }, { "name": "symfony/event-dispatcher", @@ -3013,16 +3355,16 @@ }, { "name": "symfony/http-foundation", - "version": "v4.4.25", + "version": "v4.4.26", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "0c79d5a65ace4fe66e49702658c024a419d2438b" + "reference": "8759ed5c27c2a8a47cb60f367f4be6727f08d58b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/0c79d5a65ace4fe66e49702658c024a419d2438b", - "reference": "0c79d5a65ace4fe66e49702658c024a419d2438b", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/8759ed5c27c2a8a47cb60f367f4be6727f08d58b", + "reference": "8759ed5c27c2a8a47cb60f367f4be6727f08d58b", "shasum": "" }, "require": { @@ -3061,7 +3403,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v4.4.25" + "source": "https://github.com/symfony/http-foundation/tree/v4.4.26" }, "funding": [ { @@ -3077,20 +3419,20 @@ "type": "tidelift" } ], - "time": "2021-05-26T11:20:16+00:00" + "time": "2021-06-26T21:56:04+00:00" }, { "name": "symfony/http-kernel", - "version": "v4.4.25", + "version": "v4.4.26", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "3795165596fe81a52296b78c9aae938d434069cc" + "reference": "e08b2fb8a6eedd81c70522e514bad9b2c1fff881" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/3795165596fe81a52296b78c9aae938d434069cc", - "reference": "3795165596fe81a52296b78c9aae938d434069cc", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/e08b2fb8a6eedd81c70522e514bad9b2c1fff881", + "reference": "e08b2fb8a6eedd81c70522e514bad9b2c1fff881", "shasum": "" }, "require": { @@ -3165,7 +3507,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v4.4.25" + "source": "https://github.com/symfony/http-kernel/tree/v4.4.26" }, "funding": [ { @@ -3181,20 +3523,20 @@ "type": "tidelift" } ], - "time": "2021-06-01T07:12:08+00:00" + "time": "2021-06-30T08:18:06+00:00" }, { "name": "symfony/mime", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "ed710d297b181f6a7194d8172c9c2423d58e4852" + "reference": "47dd7912152b82d0d4c8d9040dbc93d6232d472a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/ed710d297b181f6a7194d8172c9c2423d58e4852", - "reference": "ed710d297b181f6a7194d8172c9c2423d58e4852", + "url": "https://api.github.com/repos/symfony/mime/zipball/47dd7912152b82d0d4c8d9040dbc93d6232d472a", + "reference": "47dd7912152b82d0d4c8d9040dbc93d6232d472a", "shasum": "" }, "require": { @@ -3248,7 +3590,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v5.3.0" + "source": "https://github.com/symfony/mime/tree/v5.3.2" }, "funding": [ { @@ -3264,7 +3606,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-09T10:58:01+00:00" }, { "name": "symfony/polyfill-ctype", @@ -3916,16 +4258,16 @@ }, { "name": "symfony/process", - "version": "v4.4.25", + "version": "v4.4.26", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "cd61e6dd273975c6625316de9d141ebd197f93c9" + "reference": "7e812c84c3f2dba173d311de6e510edf701685a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/cd61e6dd273975c6625316de9d141ebd197f93c9", - "reference": "cd61e6dd273975c6625316de9d141ebd197f93c9", + "url": "https://api.github.com/repos/symfony/process/zipball/7e812c84c3f2dba173d311de6e510edf701685a8", + "reference": "7e812c84c3f2dba173d311de6e510edf701685a8", "shasum": "" }, "require": { @@ -3957,7 +4299,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v4.4.25" + "source": "https://github.com/symfony/process/tree/v4.4.26" }, "funding": [ { @@ -3973,7 +4315,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T11:20:16+00:00" + "time": "2021-06-09T14:57:04+00:00" }, { "name": "symfony/routing", @@ -4144,16 +4486,16 @@ }, { "name": "symfony/translation", - "version": "v4.4.25", + "version": "v4.4.26", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "dfe132c5c6d89f90ce7f961742cc532e9ca16dd4" + "reference": "2f7fa60b8d10ca71c30dc46b0870143183a8f131" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/dfe132c5c6d89f90ce7f961742cc532e9ca16dd4", - "reference": "dfe132c5c6d89f90ce7f961742cc532e9ca16dd4", + "url": "https://api.github.com/repos/symfony/translation/zipball/2f7fa60b8d10ca71c30dc46b0870143183a8f131", + "reference": "2f7fa60b8d10ca71c30dc46b0870143183a8f131", "shasum": "" }, "require": { @@ -4212,7 +4554,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v4.4.25" + "source": "https://github.com/symfony/translation/tree/v4.4.26" }, "funding": [ { @@ -4228,7 +4570,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:39:37+00:00" + "time": "2021-06-06T08:51:46+00:00" }, { "name": "symfony/translation-contracts", @@ -4310,16 +4652,16 @@ }, { "name": "symfony/var-dumper", - "version": "v4.4.25", + "version": "v4.4.26", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "31ea689a8e7d2410016b0d25fc15a1ba05a6e2e0" + "reference": "a586efdf2aa832d05b9249e9115d24f6a2691160" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/31ea689a8e7d2410016b0d25fc15a1ba05a6e2e0", - "reference": "31ea689a8e7d2410016b0d25fc15a1ba05a6e2e0", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/a586efdf2aa832d05b9249e9115d24f6a2691160", + "reference": "a586efdf2aa832d05b9249e9115d24f6a2691160", "shasum": "" }, "require": { @@ -4379,7 +4721,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v4.4.25" + "source": "https://github.com/symfony/var-dumper/tree/v4.4.26" }, "funding": [ { @@ -4395,7 +4737,7 @@ "type": "tidelift" } ], - "time": "2021-05-27T09:48:32+00:00" + "time": "2021-06-17T06:35:48+00:00" }, { "name": "thiagocfn/inscricaoestadual", @@ -5961,16 +6303,16 @@ }, { "name": "phpunit/phpunit", - "version": "8.5.16", + "version": "8.5.17", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "cc66f2fc61296be66c99931a862200e7456b9a01" + "reference": "79067856d85421c56d413bd238d4e2cd6b0e54da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/cc66f2fc61296be66c99931a862200e7456b9a01", - "reference": "cc66f2fc61296be66c99931a862200e7456b9a01", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/79067856d85421c56d413bd238d4e2cd6b0e54da", + "reference": "79067856d85421c56d413bd238d4e2cd6b0e54da", "shasum": "" }, "require": { @@ -6042,7 +6384,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.16" + "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.17" }, "funding": [ { @@ -6054,7 +6396,7 @@ "type": "github" } ], - "time": "2021-06-05T04:46:20+00:00" + "time": "2021-06-23T05:12:43+00:00" }, { "name": "scrivo/highlight.php", @@ -6979,5 +7321,5 @@ "php": "^7.2" }, "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.1.0" } diff --git a/database/migrations/2021_06_30_144621_alter_table_users.php b/database/migrations/2021_06_30_144621_alter_table_users.php new file mode 100644 index 0000000..7de97a4 --- /dev/null +++ b/database/migrations/2021_06_30_144621_alter_table_users.php @@ -0,0 +1,32 @@ +string('email')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + // + }); + } +} diff --git a/resources/views/componentes/participante.blade.php b/resources/views/componentes/participante.blade.php index a4fa6f0..eea2748 100644 --- a/resources/views/componentes/participante.blade.php +++ b/resources/views/componentes/participante.blade.php @@ -9,8 +9,9 @@
+
-
+
@@ -18,95 +19,175 @@
Dados do discente
@component('componentes.input', ['label' => 'Nome completo']) - + + @error('name.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'E-mail']) - + + @error('email.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Data de nascimento']) - + + @error('data_de_nascimento.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'CPF']) - + @endcomponent + @error('cpf.*') + + {{ $message }} + + @enderror
@component('componentes.input', ['label' => 'RG']) - + + @error('rg.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Celular']) - + + @error('celular.*') + + {{ $message }} + + @enderror @endcomponent
Endereço
@component('componentes.input', ['label' => 'CEP']) - + + @error('cep.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.select', ['label' => 'Estado']) - + @foreach ($estados as $sigla => $nome) @endforeach + @error('uf.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Cidade']) - + + @error('cidade.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Bairro']) - + + @error('bairro.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Rua']) - + + @error('rua.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Número']) - + + @error('numero.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Complemento', 'obrigatorio' => '']) + @error('complemento.*') + + {{ $message }} + + @enderror @endcomponent
Dados do curso
@component('componentes.input', ['label' => 'Universidade']) - + + @error('universidade.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Curso']) - + + @error('curso.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.select', ['label' => 'Turno']) - + @foreach ($enum_turno as $key => $value) @endforeach + @error('turno.*') + + {{ $message }} + + @enderror @endcomponent
@php @@ -114,46 +195,81 @@ @endphp
@component('componentes.select', ['label' => 'Total de períodos do curso']) - + @foreach ($options as $key => $value) @endforeach + @error('total_periodos.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.select', ['label' => 'Período atual']) - + + @error('periodo_atual.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.select', ['label' => 'Ordem de prioridade']) - + + @error('ordem_prioridade.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Coeficiente de rendimento']) - + + @error('media_do_curso.*') + + {{ $message }} + + @enderror @endcomponent
Plano de trabalho
@component('componentes.input', ['label' => 'Título']) - + + @error('nomePlanoTrabalho.*') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Anexo(.pdf)']) - + + @error('anexoPlanoTrabalho.*') + + {{ $message }} + + @enderror + @error('anexoPlanoTrabalho') + + {{ $message }} + + @enderror @endcomponent
diff --git a/resources/views/evento/formulario/anexos.blade.php b/resources/views/evento/formulario/anexos.blade.php index d461908..6ad5fb0 100644 --- a/resources/views/evento/formulario/anexos.blade.php +++ b/resources/views/evento/formulario/anexos.blade.php @@ -11,30 +11,55 @@
@component('componentes.input', ['label' => 'Projeto (.pdf)']) - + + @error('anexoProjeto') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Currículo Lattes do Proponente (.pdf)']) - + @endcomponent + @error('anexoLattesCoordenador') + + {{ $message }} + + @enderror
@component('componentes.input', ['label' => 'Planilha de Pontuação (.xlsx,.xls,.ods)']) - + + @error('anexoPlanilhaPontuacao') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Decisão do CONSU (.pdf)']) - + + @error('anexoDecisaoCONSU') + + {{ $message }} + + @enderror @endcomponent
@component('componentes.input', ['label' => 'Grupo de Pesquisa (.pdf)']) - + + @error('anexoGrupoPesquisa') + + {{ $message }} + + @enderror @endcomponent
@@ -50,13 +75,23 @@
@component('componentes.input', ['label' => 'Sim, declaro que necessito de autorizações especiais (.pdf)']) - + + @error('anexoAutorizacaoComiteEtica') + + {{ $message }} + + @enderror @endcomponent
diff --git a/resources/views/evento/formulario/finalizar.blade.php b/resources/views/evento/formulario/finalizar.blade.php index 4393262..d16c4ec 100644 --- a/resources/views/evento/formulario/finalizar.blade.php +++ b/resources/views/evento/formulario/finalizar.blade.php @@ -12,7 +12,8 @@
* Campos obrigatórios
- + +
diff --git a/resources/views/evento/formulario/participantes.blade.php b/resources/views/evento/formulario/participantes.blade.php index 92963fa..7352dc7 100644 --- a/resources/views/evento/formulario/participantes.blade.php +++ b/resources/views/evento/formulario/participantes.blade.php @@ -18,174 +18,295 @@
  • -
    - -
    - -
    -
    -
    -
    -
    - -
    Dados do discente
    -
    - @component('componentes.input', ['label' => 'Nome completo']) - - @endcomponent -
    -
    - @component('componentes.input', ['label' => 'E-mail']) - - @endcomponent -
    -
    - @component('componentes.input', ['label' => 'Data de nascimento']) - - @endcomponent -
    -
    - @component('componentes.input', ['label' => 'CPF']) - -
    -
    + @endfor +
    diff --git a/resources/views/evento/formulario/projeto.blade.php b/resources/views/evento/formulario/projeto.blade.php index b11d0c9..465ab8e 100644 --- a/resources/views/evento/formulario/projeto.blade.php +++ b/resources/views/evento/formulario/projeto.blade.php @@ -11,9 +11,9 @@

    - - - @error('nomeProjeto') + + + @error('titulo') {{ $message }} @@ -22,14 +22,14 @@
    - @foreach($grandeAreas as $grandeArea) @endforeach - @error('grandeArea') + @error('grande_area_id') {{ $message }} @@ -38,10 +38,10 @@
    - - @error('area') + @error('area_id') {{ $message }} @@ -50,7 +50,7 @@
    - {{-- @foreach($subAreas as $subArea)