5
5
[ ![ GitHub Code Style Action Status] ( https://img.shields.io/github/actions/workflow/status/gerenuk/filament-utc-dts/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square )] ( https://github.com/gerenuk/filament-utc-dts/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain )
6
6
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/gerenuk/filament-utc-dts.svg?style=flat-square )] ( https://packagist.org/packages/gerenuk/filament-utc-dts )
7
7
8
+ This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
8
9
10
+ ## Version Compatibility
9
11
10
- This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
12
+ | Plugin | Filament | Laravel | PHP |
13
+ | --------| ----------| ---------| ----------|
14
+ | 1.x | 3.x | 10.x | 8.x |
15
+ | 1.x | 3.x | 11.x | 8.2\| 8.3 |
11
16
12
17
## Installation
13
18
@@ -17,13 +22,6 @@ You can install the package via composer:
17
22
composer require gerenuk/filament-utc-dts
18
23
```
19
24
20
- You can publish and run the migrations with:
21
-
22
- ``` bash
23
- php artisan vendor:publish --tag=" filament-utc-dts-migrations"
24
- php artisan migrate
25
- ```
26
-
27
25
You can publish the config file with:
28
26
29
27
``` bash
@@ -40,14 +38,40 @@ This is the contents of the published config file:
40
38
41
39
``` php
42
40
return [
41
+ /*
42
+ * Whether a border should be shown.
43
+ */
44
+ 'show_border' => false,
45
+
46
+ /*
47
+ * The format of the datestamp.
48
+ */
49
+ 'format' => 'd M Hi\Z',
43
50
];
44
51
```
45
52
46
53
## Usage
47
54
55
+ You first need to register the plugin with Filament. This can be done inside of your ` PanelProvider ` , e.g. ` AdminPanelProvider ` .
56
+
48
57
``` php
49
- $filamentUtcDts = new Gerenuk\FilamentUtcDts();
50
- echo $filamentUtcDts->echoPhrase('Hello, Gerenuk!');
58
+ <?php
59
+
60
+ namespace App\Providers\Filament;
61
+
62
+ use Filament\Panel;
63
+ use Filament\PanelProvider;
64
+ use Gerenuk\FilamentUtcDts\FilamentUtcDtsPlugin;
65
+
66
+ class AdminPanelProvider extends PanelProvider
67
+ {
68
+ public function panel(Panel $panel): Panel
69
+ {
70
+ return $panel
71
+ // ...
72
+ ->plugin(FilamentUtcDtsPlugin::make());
73
+ }
74
+ }
51
75
```
52
76
53
77
## Testing
0 commit comments