You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
use OwenIt\Auditing\AuditingTrait;
class Patrocinador extends Model
{
use AuditingTrait;
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'patrocinadores';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['descricao', 'eventos_id', 'logo', 'nome'];
/**
* Get the evento that owns the Patrocinador.
*/
public function evento()
{
return $this->belongsTo('App\Model\Evento');
}
}
where i store my object ( my controller)
public function store(Request $request)
{
$sponsor = Patrocinador::create($request->all());
session()->flash('message', 'ok');
return response()->json('true');
}
obs:
-i haven't modified anything especial on this model .
-the object i'm trying to store was saved, only the log wasn't
Its happenig this error after insert an especific object on my db:
my composer
my model:
where i store my object ( my controller)
obs:
-i haven't modified anything especial on this model .
-the object i'm trying to store was saved, only the log wasn't
the entire error page .hmtl is here to download
The text was updated successfully, but these errors were encountered: