Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The attribute [password_confirmation] either does not exist or... #355

Closed
christoferd opened this issue Mar 6, 2024 · 5 comments
Closed

Comments

@christoferd
Copy link

Bug report

What I did:

Clicked edit in User Crud

What I expected to happen:

Open the user editor

What happened:

Laravel Error

image

image

What I've already tried to fix it:

Searched my files for "password_confirmation", searched for "confirm" ... to see if some configuration may be causing this, but I think it's just part of default Jetstream.

Backpack, Laravel, PHP, DB version:

Local Windows 11
PHP 8.2.16
L 10.46.0
Livewire v3.4.6
MySQL 5.7

Copy link

welcome bot commented Mar 6, 2024

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication mediums:

  • Bug Reports, Feature Requests - Github Issues (here);
  • Quick help (How do I do X) - Gitter Chatroom;
  • Long questions (I have done X and Y and it won't do Z wtf) - Stackoverflow, using the backpack-for-laravel tag;

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

--
Justin Case
The Backpack Robot

@karandatwani92
Copy link

Hey @christoferd

Can you share the output of php artisan backpack:version? This will tell us the backpack versions that you are using.

I tested mine and it works:
backpack/crud: 6.6.5
backpack/permissionmanager: 7.1.1

Screenshot 2024-03-07 at 1 35 33 PM

In case you want check User Modal, i have:

<?php

namespace App;

use Alert;
use App\Models\Traits\LogsActivity;
use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Activitylog\Traits\CausesActivity;
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable implements MustVerifyEmail
{
    use HasRoles;
    use CrudTrait;
    use Notifiable;
    use HasFactory;
    use CausesActivity;
    use LogsActivity;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];    
}

@christoferd
Copy link
Author

christoferd commented Mar 7, 2024

### PHP VERSION:
PHP 8.2.16 (cli) (built: Feb 13 2024 18:45:00) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.16, Copyright (c) Zend Technologies

### LARAVEL VERSION:
10.46.0.0

### BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.2.4
backpack/crud: 6.6.5
backpack/generators: v4.0.4
backpack/permissionmanager: 7.1.1
backpack/theme-coreuiv4: 1.1.1

image

image

image

Note: I added Backpack to an existing project that already had Jetstream and Spatie Permissions running.

@promatik
Copy link
Contributor

promatik commented Apr 7, 2024

Hey @christoferd!
Did you managed to fix this?

We haven't tested backpack + backpack permission manager on an existing Jetstream + Spatie Permissions project. The problem is for sure related with that.

Just to be sure, this happens when trying to edit a user right?

@promatik promatik moved this to Todo in This week Apr 7, 2024
@pxpm
Copy link
Contributor

pxpm commented Jun 4, 2024

I am closing this due to no activity.
This is most likely what @promatik said, using 2 authentication providers may mess things up.

If you are still experiencing the issue feel free to comment or re-open 🙏

@pxpm pxpm closed this as completed Jun 4, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in This week Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants