diff --git a/app/Http/Livewire/OauthClients.php b/app/Http/Livewire/OauthClients.php index 8e23f6335c..fadcd39fd8 100644 --- a/app/Http/Livewire/OauthClients.php +++ b/app/Http/Livewire/OauthClients.php @@ -2,7 +2,7 @@ namespace App\Http\Livewire; -use Illuminate\Support\Facades\Auth; +use Laravel\Passport\Client; use Laravel\Passport\ClientRepository; use Livewire\Component; @@ -29,11 +29,12 @@ class OauthClients extends Component //$newClient = ; - $this->dispatchBrowserEvent('clientCreated', $newClient->accessToken); + //$this->dispatchBrowserEvent('clientCreated', $newClient->accessToken); } - public function deleteClient($clientId): void + public function deleteClient(Client $clientId): void { - Auth::user()->clients()->find($clientId)->delete(); + //->delete must be of type Client - thus the model binding + app(ClientRepository::class)->delete($clientId); } } diff --git a/resources/views/livewire/oauth-clients.blade.php b/resources/views/livewire/oauth-clients.blade.php index 8f6c45cb8d..4c7be6c79c 100644 --- a/resources/views/livewire/oauth-clients.blade.php +++ b/resources/views/livewire/oauth-clients.blade.php @@ -1,43 +1,30 @@ - - - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/resources/views/settings/api.blade.php b/resources/views/settings/api.blade.php index 3c36c6a18f..35ce89dd50 100644 --- a/resources/views/settings/api.blade.php +++ b/resources/views/settings/api.blade.php @@ -15,7 +15,7 @@ @if (!config('app.lock_passwords'))
- +{{-- --}}
@else