-
Notifications
You must be signed in to change notification settings - Fork 878
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #366 from michalisantoniou6/make-hidden-fields-vis…
…ible Includes hidden fields on update() and create()
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5fbab77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change correct? after updating to 2.6.18 i get error
Call to undefined method Illuminate\Database\Query\Builder::makeVisible()
for now i am using previous version
5fbab77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emko What version of Laravel? I'm on 5.3.31 and makeVisible is part of both Illuminate/Database/Eloquent/Model.php and Illuminate/Database/Eloquent/Collection.php. When I hover over the makeVisible call in BaseRepository in PHPStorm, I see it's calling Model::makeVisible().
I'm not on your version of this package but I have the same BaseRepository changes that seem to work for me as I have hidden fields that aren't throwing an exception. It's possible this change, or others like it, break compatibility with specific Laravel versions depending on when this was introduced.
5fbab77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@w0rd-driven Laravel Framework version 5.1.46 (LTS) i see then this works for latest versions, i can just use the current version i am using until when we upgrade to newer Laravel version
my bad sorry guys
Thanks