From 77659f800543605762f0953e2285acc9f45a022a Mon Sep 17 00:00:00 2001 From: Gabriel-31415 Date: Fri, 28 May 2021 16:53:40 +0000 Subject: [PATCH] ajustes --- app/Http/Controllers/TrabalhoController.php | 2 +- app/Notifications/recuperacaoSenha.php | 2 +- ...20_02_05_123217_create_enderecos_table.php | 10 +++---- .../views/evento/submeterTrabalho.blade.php | 27 +++++++++---------- .../vendor/notifications/email.blade.php | 4 ++- 5 files changed, 22 insertions(+), 23 deletions(-) diff --git a/app/Http/Controllers/TrabalhoController.php b/app/Http/Controllers/TrabalhoController.php index 32066e9..b0d957f 100644 --- a/app/Http/Controllers/TrabalhoController.php +++ b/app/Http/Controllers/TrabalhoController.php @@ -1006,7 +1006,7 @@ class TrabalhoController extends Controller public function salvar(Request $request) { $edital = Evento::find($request->editalId); $hoje = now(); - // dd(); + // dd($request->all()); 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.']); } diff --git a/app/Notifications/recuperacaoSenha.php b/app/Notifications/recuperacaoSenha.php index 91ae1d7..1910311 100644 --- a/app/Notifications/recuperacaoSenha.php +++ b/app/Notifications/recuperacaoSenha.php @@ -42,7 +42,7 @@ class recuperacaoSenha extends Notification { return (new MailMessage) ->subject('Recuperação de senha') - ->greeting('Olá;!') + ->greeting('Olá!') ->line('Você está recebendo este e-mail porque nós recebemos uma requisição de redefinição de senha para sua conta.') ->action('REDEFINIR SENHA', route('password.reset', $this->token)) ->line('Se não foi você que solicitou esta recuperação, apenas ignore este e-mail.') diff --git a/database/migrations/2020_02_05_123217_create_enderecos_table.php b/database/migrations/2020_02_05_123217_create_enderecos_table.php index 1b07779..df57efd 100644 --- a/database/migrations/2020_02_05_123217_create_enderecos_table.php +++ b/database/migrations/2020_02_05_123217_create_enderecos_table.php @@ -16,12 +16,12 @@ class CreateEnderecosTable extends Migration Schema::create('enderecos', function (Blueprint $table) { $table->bigIncrements('id'); $table->timestamps(); - $table->string('rua'); + $table->string('rua')->nullable(); $table->string('numero')->nullable(); - $table->string('bairro'); - $table->string('cidade'); - $table->string('uf'); - $table->string('cep'); + $table->string('bairro')->nullable(); + $table->string('cidade')->nullable(); + $table->string('uf')->nullable(); + $table->string('cep')->nullable(); $table->string('complemento')->nullable(true); }); } diff --git a/resources/views/evento/submeterTrabalho.blade.php b/resources/views/evento/submeterTrabalho.blade.php index ab88b70..21acfef 100644 --- a/resources/views/evento/submeterTrabalho.blade.php +++ b/resources/views/evento/submeterTrabalho.blade.php @@ -1139,7 +1139,7 @@
* Campos obrigatórios
- +
@@ -1997,21 +1997,18 @@ function validarPart3(){