Skip to content

Add site logo and favicon to Application Settings #16

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

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

KaramNassar
Copy link
Contributor

No description provided.

@@ -12,6 +12,8 @@ return new class extends Migration
$table->id();
$table->string('site_name')->nullable();
$table->text('site_description')->nullable();
$table->string('site_logo')->nullable();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should create a new migration because you can't force the user to recreate.

And need to put in the documentation something to force run the command to create new fields with new migration.

And is better to avoid bug to people that have now, create a feature/flag to show these 2 fields only if enable it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I hope my new commit fixes that. Thanks for your feedback.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks man, I will see this soon @KaramNassar

@@ -18,6 +20,26 @@ public static function get(): array
Textarea::make('site_description')
->label(__('filament-general-settings::default.site_description'))
->columnSpanFull(),
Grid::make()->schema([
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here can show this two fields depends if enable in the AdminPanel to avoid bug

@joaopaulolndev joaopaulolndev merged commit 91cefa1 into joaopaulolndev:main Jul 3, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants