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
Database Driver & Version: Oracle with "yajra/laravel-oci8": "5.5.*"
Description:
I have a project running on a production server with PHP 7.3.19. There are some models using protected attribute $guarded instead of $fillable. Everything is fine.
The problem started when I tried to move it to another server that has PHP 7.3.22. All models that has $guarded is not working with mass assignment method Model::create($attributes) because only created_at and updated_at values are being filled on database insert statement. Then I just switch these models to use $fillable and things started working normally.
What can be happening?
Steps To Reproduce:
Create a Laravel 5.5 project on an PHP 7.3.22 environment.
Implement a model with mass assignment $guarded attribute.
Connect to an Oracle database using yajra/laravel-oci8 driver.
This discussion was converted from issue #34447 on September 21, 2020 19:42.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
5.5.*
7.3.22
"yajra/laravel-oci8": "5.5.*"
Description:
I have a project running on a production server with PHP
7.3.19
. There are some models using protected attribute$guarded
instead of$fillable
. Everything is fine.The problem started when I tried to move it to another server that has PHP
7.3.22
. All models that has$guarded
is not working with mass assignment methodModel::create($attributes)
because onlycreated_at
andupdated_at
values are being filled on database insert statement. Then I just switch these models to use$fillable
and things started working normally.What can be happening?
Steps To Reproduce:
5.5
project on an PHP7.3.22
environment.$guarded
attribute.yajra/laravel-oci8
driver.Model::create($attributes)
method.Beta Was this translation helpful? Give feedback.
All reactions