Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

An update to this. If I perform this like so

$DID = new DID;
$DID->did = $search;
$DID->did_network_id = 86;
dd($DID);

It has it's values correct, but if I persist

$DID->save();

before the diedump, the value for that field is now 0, even though it is storing in the database.

0

While I still can't say for certain what was causing this, moving my methods out of AppServiceProvider and into the EventServiceProvider fixed my issue.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

rberlin01 rberlin01 Joined 5 Sep 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.