You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hallo,
My laravel 7 app has login /register functionality and I added to my project
cartalyst-sentinel 4.x
and replacing my code with cartalyst-sentinel methods I got error
Field 'username' doesn't have a default value (SQL: insert into hs3_users (email, password, updated_at, created_at) values ([email protected], $2y$10$TBUJVFfOT1uc7tw3o2dajOd27kpPP5zYQSdf7ifKf7m10IkXgtko2, 2020-09-06 16:28:53, 2020-09-06 16:28:53))
making :
I modified migration file from cartalyst-sentinel and added several fields, incuding username.
My model app/User.php has :
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Storage;
use App\UsersGroups;
use App\Group;
class User extends Authenticatable
{
use Notifiable;
protected $table = 'users';
protected $primaryKey = 'id';
public $timestamps = false;
protected $fillable = [
'username', 'email', 'password', 'status', 'account_type', 'first_name', 'last_name', 'phone', 'creator_id', 'avatar'
...
I found files vendor/cartalyst/sentinel/src/Users/EloquentUser.php and
/vendor/cartalyst/sentinel/src/Users/UserInterface.php
Have I to reference my model to one of these 2 files? In which way?
Thanks!
The text was updated successfully, but these errors were encountered:
Hallo,
My laravel 7 app has login /register functionality and I added to my project
cartalyst-sentinel 4.x
and replacing my code with cartalyst-sentinel methods I got error
Field 'username' doesn't have a default value (SQL: insert into
hs3_users(
email,
password,
updated_at,
created_at) values ([email protected], $2y$10$TBUJVFfOT1uc7tw3o2dajOd27kpPP5zYQSdf7ifKf7m10IkXgtko2, 2020-09-06 16:28:53, 2020-09-06 16:28:53))
making :
I modified migration file from cartalyst-sentinel and added several fields, incuding username.
My model app/User.php has :
I found files vendor/cartalyst/sentinel/src/Users/EloquentUser.php and
/vendor/cartalyst/sentinel/src/Users/UserInterface.php
Have I to reference my model to one of these 2 files? In which way?
Thanks!
The text was updated successfully, but these errors were encountered: