fix admin permission issues

This commit is contained in:
omair saleh
2021-12-27 11:58:32 +08:00
parent c48cb3be88
commit f3dfb5ed7c
2 changed files with 2 additions and 2 deletions
@@ -22,7 +22,6 @@ abstract class AbstractDeleteRecord
}
} catch (QueryException|\Exception $exception){
dd($exception);
throw new MalformedRequestException('Unable to update the record due to unexpected error');
}
}
+2 -1
View File
@@ -5,6 +5,7 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\Permission\Traits\HasRoles;
use Tymon\JWTAuth\Contracts\JWTSubject;
@@ -23,7 +24,7 @@ class User extends AbstractModel implements
AuthorizableContract,
CanResetPasswordContract
{
use HasRoles, Notifiable, Authenticatable, Authorizable, CanResetPassword, MustVerifyEmail;
use HasRoles, Notifiable, Authenticatable, Authorizable, CanResetPassword, MustVerifyEmail, SoftDeletes;
/**