Allow desc to be null

Desc's are allowed to be null as they're not a required field.
This commit is contained in:
notCharles 2024-04-21 10:04:16 -04:00
parent 3e239f9caa
commit 7de4cf1417

View File

@ -142,7 +142,7 @@ class EggResource extends Resource
->searchable(), ->searchable(),
Tables\Columns\TextColumn::make('name') Tables\Columns\TextColumn::make('name')
->icon('tabler-egg') ->icon('tabler-egg')
->description(fn ($record): string => $record->description) ->description(fn ($record): ?string => $record->description)
->wrap() ->wrap()
->searchable(), ->searchable(),
Tables\Columns\TextColumn::make('author') Tables\Columns\TextColumn::make('author')