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
Refactor config to remove env defaults and update docs
Updated the configuration to use null defaults instead of environment variables for 'app_name' and GitHub settings. Adjusted the README to reflect these changes and clarified configuration instructions. Modified the Blade view to fallback to 'app.name' if 'app_name' is not set in the plugin config.
By default, the plugin will display the name of your application (configured from your .ENV)next to the copyright. You can change the phrase by publishing the plugin configuration file.
175
+
By default, the plugin will display the name of your application (configured from your .ENV), or the app_name key in the plugin config file,next to the copyright. You can change the phrase by publishing the plugin configuration file.
175
176
176
177
If you prefer a more personalized approach, you can use the following method:
177
178
@@ -214,13 +215,20 @@ use Devonab\FilamentEasyFooter\EasyFooterPlugin;
214
215
- showLogo : Display the GitHub logo next to the version
215
216
- showUrl : Add an `<a>` tag to the Github URL around the logo
216
217
217
-
To make this one work, you need to add this keys to our .env file :
218
+
To make this one work, you need to publish the plugin configuration file and set the following keys :
218
219
219
-
```bash
220
-
GITHUB_REPOSITORY=user/name-of-the-repo
221
-
GITHUB_TOKEN= # Recommended but not compulsory for all repos, required for private repos
222
-
GITHUB_CACHE_TTL= # in seconds, 3600 by default
220
+
```php
221
+
return [
222
+
'app_name' => null,
223
+
224
+
'github' => [
225
+
'repository' => null, #user/name-of-the-repo
226
+
'token' => null, # Recommended but not compulsory for all repos, required for private repos
227
+
'cache_ttl' => 3600, # in seconds, 3600 by default
228
+
],
229
+
];
223
230
```
231
+
224
232
If needed, you can generate a token [here](https://github.com/settings/personal-access-tokens). The token need to have at least the `read-only` permission on the "Contents" scope in Repository permissions.
0 commit comments