slipperydippery
1 month ago

Call to a member function instance() on array when model->save()

Posted 1 month ago by slipperydippery

I'm currently having trouble saving Laravel models. I get this kind of error, and I have no idea where to start looking for a fix:

#0 /var/www/mijn.proactive.nl/vendor/illuminate/support/Facades/Date.php(115): Illuminate\Support\Facades\Facade::swap(Object(Illuminate\Support\DateFactory))
#1 /var/www/mijn.proactive.nl/vendor/illuminate/support/Facades/Facade.php(166): Illuminate\Support\Facades\Date::resolveFacadeInstance('date')
#2 /var/www/mijn.proactive.nl/vendor/illuminate/support/Facades/Facade.php(255): Illuminate\Support\Facades\Facade::getFacadeRoot()
#3 /var/www/mijn.proactive.nl/vendor/illuminate/database/Eloquent/Concerns/HasTimestamps.php(87): Illuminate\Support\Facades\Facade::__callStatic('now', Array)
#4 /var/www/mijn.proactive.nl/vendor/illuminate/database/Eloquent/Concerns/HasTimestamps.php(39): Illuminate\Database\Eloquent\Model->freshTimestamp()
#5 /var/www/mijn.proactive.nl/vendor/illuminate/database/Eloquent/Model.php(737): Illuminate\Database\Eloquent\Model->updateTimestamps()
#6 /var/www/mijn.proactive.nl/vendor/illuminate/database/Eloquent/Model.php(661): Illuminate\Database\Eloquent\Model->performUpdate(Object(Illuminate\Database\Eloquent\Builder))
#7 /var/www/mijn.proactive.nl/ProActive/Api/Bunq/User.php(641): Illuminate\Database\Eloquent\Model->save()

Any help would be appreciated

Please sign in or create an account to participate in this conversation.