Skip to content

Commit

Permalink
feat:[lar-158] add creation date in article resource (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersoldattech authored Jan 1, 2025
2 parents d9074e8 + b45ebac commit 5d1f6b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Filament/Resources/ArticleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public static function table(Table $table): Table
->label('Auteur')
->sortable()
->searchable(),
Tables\Columns\TextColumn::make('created_at')
->label(__('Date de création'))
->date(),
Tables\Columns\IconColumn::make('published_at')
->label('Publié')
->getStateUsing(fn (Article $record) => $record->isPublished())
Expand Down

0 comments on commit 5d1f6b9

Please sign in to comment.