fix
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
namespace App\Livewire;
|
namespace App\Livewire;
|
||||||
|
|
||||||
use App\Models\InstanceSettings;
|
use App\Models\InstanceSettings;
|
||||||
use Illuminate\Container\Attributes\Auth as AttributesAuth;
|
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Hash;
|
use Illuminate\Support\Facades\Hash;
|
||||||
@@ -32,7 +31,7 @@ class NavbarDeleteTeam extends Component
|
|||||||
$currentTeam->delete();
|
$currentTeam->delete();
|
||||||
|
|
||||||
$currentTeam->members->each(function ($user) use ($currentTeam) {
|
$currentTeam->members->each(function ($user) use ($currentTeam) {
|
||||||
if ($user->id === AttributesAuth::id()) {
|
if ($user->id === Auth::id()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$user->teams()->detach($currentTeam);
|
$user->teams()->detach($currentTeam);
|
||||||
|
Reference in New Issue
Block a user