Closed christoferd closed 3 months ago
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:
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
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
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',
];
}
### 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
Note: I added Backpack to an existing project that already had Jetstream and Spatie Permissions running.
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?
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 🙏
Bug report
What I did:
Clicked edit in User Crud
What I expected to happen:
Open the user editor
What happened:
Laravel Error
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