Comments (7)
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.
Woops, forgot to add the username column to $fillable array. Now it's working great.
Thanks!! :)
from sentinel.
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.
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.
Try to just use ExtendedSentryUser
, if your class is not namespaced, there is no need for the full class "path".
from sentinel.
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.
It started working for some reason... I will just roll with it for now. Thanks for the help!
from sentinel.
Related Issues (20)
- Using Sentinel statelessly without starting session HOT 3
- Prevent Users from getting same Sesstion ID
- i cant use middleware auth or guest inside of my routes HOT 3
- Is there a way to add users via the cli with their rolls etc ? HOT 2
- [Proposal] Incomplete installation guide - Add hint to install database schema HOT 1
- How do I get Sentinel to authenticate checking additional fields? HOT 2
- HasAccess function return false if a user have multiple roles and different permission HOT 8
- Prefix in database tables
- PostgreSQL ERROR: operator does not exist: boolean = integer HOT 3
- registerAndActivate on a different connection doesn't work with config() HOT 5
- Cartalyst\Sentinel\Users\EloquentUser::getUserId(): Return value must be of type int, null returned
- illuminate/ packages older version HOT 1
- Activation::complete method returns PHP Fatal error: Uncaught RuntimeException: A facade root has not been set error
- Support for Laravel 9.6 and PHP 8.* HOT 2
- Authenticate using username or email
- unable to login HOT 2
- Laravel 10 Support HOT 4
- Deprecation warnings HOT 1
- Question: does it support user impersonation?
- support laravel 11 HOT 1
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 sentinel.