Show git commit hash as build number in sidebar footer
Deploy / deploy (push) Successful in 16s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-12 21:49:42 +02:00
1 parent 70eb5170d1
commit 88224f887c
3 files changed
+13

No files matched your search

+1
View File
@@ -33,6 +33,7 @@ jobs:
CACHE_DRIVER=file CACHE_DRIVER=file
QUEUE_CONNECTION=sync QUEUE_CONNECTION=sync
LOG_CHANNEL=stderr LOG_CHANNEL=stderr
GIT_COMMIT=${{ github.sha }}
EOF EOF
- name: PHP-Quellverzeichnisse leeren - name: PHP-Quellverzeichnisse leeren
@@ -3,6 +3,8 @@
namespace App\Providers\Filament; namespace App\Providers\Filament;
use Filament\Navigation\NavigationGroup; use Filament\Navigation\NavigationGroup;
use Filament\View\PanelsRenderHook;
use Illuminate\Support\HtmlString;
use Filament\Http\Middleware\Authenticate; use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents; use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent; use Filament\Http\Middleware\DispatchServingFilamentEvent;
@@ -44,6 +46,14 @@ class UserPanelProvider extends PanelProvider
NavigationGroup::make('Ressourcen'), NavigationGroup::make('Ressourcen'),
NavigationGroup::make('CRM'), NavigationGroup::make('CRM'),
]) ])
->renderHook(
PanelsRenderHook::SIDEBAR_FOOTER,
fn () => new HtmlString(
'<div class="px-6 pb-4 font-mono text-[10px] text-gray-400 dark:text-gray-600">'
. 'Build ' . substr(config('app.git_commit', 'dev'), 0, 10)
. '</div>'
)
)
->discoverResources(in: app_path('Filament/User/Resources'), for: 'App\\Filament\\User\\Resources') ->discoverResources(in: app_path('Filament/User/Resources'), for: 'App\\Filament\\User\\Resources')
->discoverPages(in: app_path('Filament/User/Pages'), for: 'App\\Filament\\User\\Pages') ->discoverPages(in: app_path('Filament/User/Pages'), for: 'App\\Filament\\User\\Pages')
->pages([ ->pages([
+2
View File
@@ -15,6 +15,8 @@ return [
'name' => env('APP_NAME', 'Laravel'), 'name' => env('APP_NAME', 'Laravel'),
'git_commit' => env('GIT_COMMIT', 'dev'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Environment | Application Environment