You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,20 @@ $panel->plugins([
91
91
]);
92
92
```
93
93
94
+
### Git Branch
95
+
96
+
You can enable the display of the current git branch in the badge via `->showGitBranch()`. This requires the `exec()` function to be enabled in your PHP configuration.
97
+
98
+
```php
99
+
use pxlrbt\FilamentEnvironmentIndicator\EnvironmentIndicatorPlugin;
100
+
use Filament\Support\Colors\Color;
101
+
102
+
$panel->plugins([
103
+
EnvironmentIndicatorPlugin::make()
104
+
->showGitBranch()
105
+
]);
106
+
```
107
+
94
108
## Contributing
95
109
96
110
If you want to contribute to this packages, you may want to test it in a real Filament project:
0 commit comments