Good morning.
I need to insert / update data from a table in my database, however I do not know the columns that can hold within that table, because the system is very flex. I created a modal with $fillable = ['*'];
to try to update only the cases that pass in the input, but it is not inserting anything. Follow the codes below.
Note: the same input data is the data in the table.
Modal:
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Request;
class ChamadosChamados extends Model
{
protected $table = 'chamados_chamados';
public $timestamps = false;
protected $fillable = ['*'];
}
Input DD.
array:15 [▼
"_token" => "J05hMfB9PtZ6uoVdpKPNc29mZcN4KXgqkpVn71Y0"
"equipe" => "SANTANDER - RCI MOROSO"
"tipo" => "1"
"categoria" => "1"
"modelo_formulario" => "1"
"segmento" => "LEVES PR"
"dias_atraso" => "1"
"contrato" => "1"
"nome_financiado" => "1"
"endereco_financiado" => "1"
"uf" => "PA"
"cidade" => "AURORA"
"telefone_acordo" => "1"
"telefone_agendamento" => "1"
"observacao_required" => "1"
]