We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd4a35 commit 7ab7b05Copy full SHA for 7ab7b05
2 files changed
CHANGELOG.md
@@ -2,7 +2,7 @@
2
3
## v0.3.1.20
4
5
--
+- Revert changes to User::fresh() but leave comment regarding upgrading Eloquent
6
7
## v0.3.1.19
8
userfrosting/models/database/User.php
@@ -87,9 +87,11 @@ public static function isLoggedIn(){
87
/**
88
* Refresh the User and their associated Groups from the DB.
89
*
90
+ * If you are getting errors here after upgrading Eloquent, remove the word "array" from the function declaration.
91
+ *
92
* @see http://stackoverflow.com/a/27748794/2970321
93
*/
- public function fresh($options = []){
94
+ public function fresh(array $options = []){
95
// TODO: Update table and column info, in case it has changed?
96
$user = parent::fresh($options);
97
$user->getGroupIds();
0 commit comments