Erro ao validar. Laravel 7.0
Criador
Christian Kilian
Fiz exatamente ao que foi descrito em aula, mas não estou conseguindo mais inserir e nem atulizar os registro da base.
Quando tento cadastrar
"""SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: \"\" (SQL: select count(*) as aggregate from \"categories\" where \"name\" = LALALALA and \"id\" <> )","
Quanto tento fazer o update
"Erro 411 Length Required"
Codigo : 'name' => "required|min:3|max:50|unique:categories,name,{$this->segment(3)},id"
Manager
Carlos Ferreira
Olá, Christian!
Tudo bem?
Qual o valor de $this->segment(3)
dd($this->segment(3));
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!