mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
code-style
This commit is contained in:
@ -47,7 +47,7 @@ protected function getTableColumns(): array
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
/** @var \App\Models\User $user */
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
return $table
|
||||
@ -60,7 +60,7 @@ public function table(Table $table): Table
|
||||
->using(function ($record, array $data): void {
|
||||
app(UpdateUser::class)->update($record, $data);
|
||||
})
|
||||
->form(fn (Form $form, $record): \Filament\Forms\Form => $form
|
||||
->form(fn (Form $form, $record): Form => $form
|
||||
->schema([
|
||||
TextInput::make('name')
|
||||
->rules(UpdateUser::rules($record)['name']),
|
||||
@ -86,7 +86,7 @@ public function table(Table $table): Table
|
||||
->label('Projects')
|
||||
->icon('heroicon-o-rectangle-stack')
|
||||
->authorize(fn ($record) => $user->can('update', $record))
|
||||
->form(fn (Form $form, $record): \Filament\Forms\Form => $form
|
||||
->form(fn (Form $form, $record): Form => $form
|
||||
->schema([
|
||||
CheckboxList::make('projects')
|
||||
->options(Project::query()->pluck('name', 'id')->toArray())
|
||||
|
Reference in New Issue
Block a user