Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set filament brand config to site name setting #297

Merged
merged 5 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/Providers/FilamentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Providers;

use App\Models\User;
use App\Settings\GeneralSettings;
use Filament\Facades\Filament;
use Filament\Navigation\NavigationItem;
use FilamentVersions\Facades\FilamentVersions;
Expand Down Expand Up @@ -32,6 +33,12 @@ public function boot()
return true;
});

try {
config(['filament.brand' => app(GeneralSettings::class)->site_name ?? env('APP_NAME')]);
} catch (\Throwable $th) {
// if this fails it's because the migration doesn't exist so it can be skipped
}

FilamentVersions::addItem('Speedtest Tracker', 'v'.config('speedtest.build_version'));

Filament::serving(function () {
Expand Down
39 changes: 0 additions & 39 deletions database/migrations/2023_01_05_210719_create_cache_table.php

This file was deleted.