Comments (5)
It is a problem with the Eloquent's mass assignment.
The fillble property of the User model is initialed by the config file, as follows:
$this->fillable = config('user.user.fillable');
How ever, the "user.php" config file is not in the "config" directory, but in the "package" directory which is in the "config" directory.
So, how to deal with the "package" directory?
I juts pull all the files of the "package" directory into the "config" directory, but it still doesn't work..says:
FatalErrorException in Model.php line 986:
Class 'Lavalite\User\Role' not found
from cms.
Hi, I am new to LavaLite and Laravel - probably not a very good combination :)
Yet, I've managed to "temporarily" fix the situation by copying the vendor/lavalite/user/config/config.php file to /config/user.php
I know it probably is not the correct way to tackle this, but, never the less... at least I can create users.
from cms.
Yes, I did it similarly. I just pull the user.php from the "package"
directory to its upper directory.
And I also copied a new Role.php to the proper directory. And finally it
worked...
That's not graceful. Uh.. so I just turned to the BootstrapCMS project.
2015-11-27 22:48 GMT+08:00 Gregory Brown [email protected]:
Hi, I am new to LavaLite and Laravel - probably not a very good
combination :)
Yet, I've managed to "temporarily" fix the situation by copying the
vendor/lavalite/user/config/config.php file to /config/user.php
I know it probably is not the correct way to tackle this, but, never the
less... at least I can create users.—
Reply to this email directly or view it on GitHub
#44 (comment).
from cms.
Replace this two file form the git repository.
app/Http/Controllers/Auth/AuthController.php
app/Http/Controllers/UserController.php
from cms.
Glad to see you have updated!
btw, I also found the "$this->role" bug~~
gmail(byhongda)
From: Renfos Technologies
Date: 2015-12-01 12:29
To: LavaLite/cms
CC: byhongda
Subject: Re: [cms] The user register page doesn't work. (#44)
Replace this two file form the git repository.
app/Http/Controllers/Auth/AuthController.php
app/Http/Controllers/UserController.php
—
Reply to this email directly or view it on GitHub.
from cms.
Related Issues (20)
- Class "Litecms\Contact\Http\Controllers\ResourceController" not found HOT 2
- Is this compatible with Laravel 8.x? HOT 1
- Trying to get in touch regarding a security issue
- Reported 3 Security Issues at huntr.dev HOT 2
- Admin login fails - menu has_role on non object HOT 1
- Missing some files HOT 1
- Litecms error on blog pages HOT 4
- Error in the Demo
- Stored XSS exists in Blog package of Lavalite CMS v8.1.2
- Password hash in Users setting HOT 1
- Admin test login not work HOT 5
- BadMethodCallException: Call to undefined method App\Models\Role::withTrashed() in file /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php on line 71
- SQLSTATE[42S22]: Column not found: 1054 Unknown column 'slug' in 'where clause' (SQL: select count(*) as aggregate from `users` where `slug` = test12345 and `users`.`deleted_at` is null) HOT 2
- Path Traversal Attack
- There is a Stored XSS
- Class App\Models\User contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Litepie\User\Interfaces\UserPolicyInterface::hasRole, Litepie\User\Interfaces\UserPolicyInterface::canDo) HOT 4
- Call to undefined method Litecms\Page\Forms\Page::grouped()
- Vulnerability Report: sXss
- run 'php artisan lavalite:install' but missing some migration table HOT 5
- [feature] can you support postgresql?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.