Skip to content

Commit

Permalink
Merge pull request #11 from LukasFreyCZ/main
Browse files Browse the repository at this point in the history
Updated readme
  • Loading branch information
ralphjsmit authored Oct 10, 2022
2 parents e47f883 + 6425a65 commit c210108
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Currently, the following components are available:
2. [Timestamps](#timestamps)
3. [UpdatedAt](#updatedat)
4. [CreatedAt](#createdat)
5. [DeletedAt](#deletedat)
6. [Timestamp](#timestamp)

### Sidebar

Expand Down Expand Up @@ -107,6 +109,33 @@ return $form->schema([
]);
```

## DeletedAt

Use the `DeletedAt` component to display the `deleted_at` timestamp for your soft-delete record:

```php
use RalphJSmit\Filament\Components\Forms\DeletedAt;

return $form->schema([
DeletedAt::make(),
//
]);
```

## Timestamp

Use the `Timestamp` component to display a custom timestamp for your record. Internally, all of the above timestamps
use this component.

```php
use RalphJSmit\Filament\Components\Forms\Timestamp;

return $form->schema([
Timestamp::make('email_verified_at'),
//
]);
```

## General

🐞 If you spot a bug, please submit a detailed issue and I'll try to fix it as soon as possible.
Expand Down

0 comments on commit c210108

Please sign in to comment.