vendredi 19 janvier 2018

how to remove prefix from my primary key in laravel

I have users table which contains UserId as primary key but when I user Authentication it uses "Users.user_UserId" so how do i remove "user_" prefix from primary key?

Model:

    class User extends Authenticatable
    {
        use Notifiable;

        /**
         * The attributes that are mass assignable.
         *
         * @var array
         */

        protected $table = 'Users';

        protected $primaryKey = 'UserId';
    }



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FTNaNZ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire