mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 23:42:34 +00:00
code-style
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
use App\Actions\SshKey\CreateSshKey;
|
||||
use App\Models\SshKey;
|
||||
use App\Models\User;
|
||||
use App\Web\Components\Page;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
@ -24,7 +25,7 @@ class Index extends Page
|
||||
|
||||
public static function canAccess(): bool
|
||||
{
|
||||
/** @var \App\Models\User $user */
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
return $user->can('viewAny', SshKey::class);
|
||||
@ -39,7 +40,7 @@ public function getWidgets(): array
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
/** @var \App\Models\User $user */
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
return [
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace App\Web\Pages\Settings\SSHKeys\Widgets;
|
||||
|
||||
use App\Models\SshKey;
|
||||
use App\Models\User;
|
||||
use Filament\Tables\Actions\DeleteAction;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
@ -41,7 +42,7 @@ protected function getTableColumns(): array
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
/** @var \App\Models\User $user */
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
return $table
|
||||
|
Reference in New Issue
Block a user