Code Monkey home page Code Monkey logo

Comments (7)

bencorlett avatar bencorlett commented on May 9, 2024

You need to use a custom model (register it in the Sentinel config) and set your $fillable array.
On 10 Jul 2014, at 7:55 pm, Gelurban [email protected] wrote:

When I'm registering a new user:

$input = [
'email'=> Input::get('email'),
'username' => Input::get('username'),
'password' => Input::get('password')
];

And I use Sentinel::register($input); Only email & password columns with be filled in the database. In Sentry the username column could also be used to create the user.

Is it a bug? Or i'm doing it wrong?
Thanks in advance!


Reply to this email directly or view it on GitHub.

from sentinel.

Gelurban avatar Gelurban commented on May 9, 2024

Woops, forgot to add the username column to $fillable array. Now it's working great.
Thanks!! :)

from sentinel.

bencorlett avatar bencorlett commented on May 9, 2024

You're welcome

Sent from my iPhone

Please excuse my brevity

On 10 Jul 2014, at 8:21 pm, Gelurban [email protected] wrote:

Woops, forgot to add the username column to $fillable array. Now it's working great.
Thanks!! :)


Reply to this email directly or view it on GitHub.

from sentinel.

calebsmithdev avatar calebsmithdev commented on May 9, 2024

How did you setup your custom model? I placed it in the Config file with the name 'App\Model\ExtendedSentryUser' but I kept receiving a class error that '\App\Model\ExtendedSentryUser' could not be found. I just need to add that one $fillable array, so maybe I setup the custom model wrong.

from sentinel.

brunogaspar avatar brunogaspar commented on May 9, 2024

Try to just use ExtendedSentryUser, if your class is not namespaced, there is no need for the full class "path".

from sentinel.

calebsmithdev avatar calebsmithdev commented on May 9, 2024

I did that originally.. so I thought maybe I did it wrong. I'll try it again tomorrow when I get back in the office and I will let you know what happens.

from sentinel.

calebsmithdev avatar calebsmithdev commented on May 9, 2024

It started working for some reason... I will just roll with it for now. Thanks for the help!

from sentinel.

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.