Cleanup unused vars (#366)
* Update app/Exceptions/Handler.php Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
This commit is contained in:
parent
8e5660a1b9
commit
58bfa12280
@ -215,7 +215,7 @@ class Handler extends ExceptionHandler
|
|||||||
->map(fn ($trace) => Arr::except($trace, ['args']))
|
->map(fn ($trace) => Arr::except($trace, ['args']))
|
||||||
->all(),
|
->all(),
|
||||||
'previous' => Collection::make($this->extractPrevious($e))
|
'previous' => Collection::make($this->extractPrevious($e))
|
||||||
->map(fn ($exception) => $e->getTrace())
|
->map(fn ($exception) => $exception->getTrace())
|
||||||
->map(fn ($trace) => Arr::except($trace, ['args']))
|
->map(fn ($trace) => Arr::except($trace, ['args']))
|
||||||
->all(),
|
->all(),
|
||||||
],
|
],
|
||||||
|
@ -34,7 +34,7 @@ class ServersRelationManager extends RelationManager
|
|||||||
->label('Docker Image'),
|
->label('Docker Image'),
|
||||||
Tables\Columns\SelectColumn::make('allocation.id')
|
Tables\Columns\SelectColumn::make('allocation.id')
|
||||||
->label('Primary Allocation')
|
->label('Primary Allocation')
|
||||||
->options(fn ($state, Server $server) => [$server->allocation->id => $server->allocation->address])
|
->options(fn (Server $server) => [$server->allocation->id => $server->allocation->address])
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
->sortable(),
|
->sortable(),
|
||||||
]);
|
]);
|
||||||
|
@ -34,7 +34,7 @@ class NodesRelationManager extends RelationManager
|
|||||||
->sortable(),
|
->sortable(),
|
||||||
Tables\Columns\SelectColumn::make('allocation.id')
|
Tables\Columns\SelectColumn::make('allocation.id')
|
||||||
->label('Primary Allocation')
|
->label('Primary Allocation')
|
||||||
->options(fn ($state, Server $server) => [$server->allocation->id => $server->allocation->address])
|
->options(fn (Server $server) => [$server->allocation->id => $server->allocation->address])
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
->sortable(),
|
->sortable(),
|
||||||
Tables\Columns\TextColumn::make('memory')->icon('tabler-device-desktop-analytics'),
|
Tables\Columns\TextColumn::make('memory')->icon('tabler-device-desktop-analytics'),
|
||||||
|
@ -70,7 +70,7 @@ class ListServers extends ListRecords
|
|||||||
->sortable(),
|
->sortable(),
|
||||||
Tables\Columns\SelectColumn::make('allocation_id')
|
Tables\Columns\SelectColumn::make('allocation_id')
|
||||||
->label('Primary Allocation')
|
->label('Primary Allocation')
|
||||||
->options(fn ($state, Server $server) => $server->allocations->mapWithKeys(
|
->options(fn (Server $server) => $server->allocations->mapWithKeys(
|
||||||
fn ($allocation) => [$allocation->id => $allocation->address])
|
fn ($allocation) => [$allocation->id => $allocation->address])
|
||||||
)
|
)
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
|
@ -68,7 +68,7 @@ class ServersRelationManager extends RelationManager
|
|||||||
->sortable(),
|
->sortable(),
|
||||||
Tables\Columns\SelectColumn::make('allocation.id')
|
Tables\Columns\SelectColumn::make('allocation.id')
|
||||||
->label('Primary Allocation')
|
->label('Primary Allocation')
|
||||||
->options(fn ($state, Server $server) => [$server->allocation->id => $server->allocation->address])
|
->options(fn (Server $server) => [$server->allocation->id => $server->allocation->address])
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
->sortable(),
|
->sortable(),
|
||||||
Tables\Columns\TextColumn::make('image')->hidden(),
|
Tables\Columns\TextColumn::make('image')->hidden(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user