Giter VIP home page Giter VIP logo

Comments (5)

byhongda avatar byhongda commented on August 15, 2024

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.

bugzbrown avatar bugzbrown commented on August 15, 2024

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.

byhongda avatar byhongda commented on August 15, 2024

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.

Renfos avatar Renfos commented on August 15, 2024

Replace this two file form the git repository.

app/Http/Controllers/Auth/AuthController.php
app/Http/Controllers/UserController.php

from cms.

byhongda avatar byhongda commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.