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
feat: migrate configuration to spatie/laravel-settings
BREAKING CHANGE: Replace config/umami.php with database-backed settings via spatie/laravel-settings.
- Remove config/umami.php and all env() reads
- Add UmamiSettings class extending Spatie\LaravelSettings\Settings
- Add settings migration with default values
- Update UmamiServiceProvider to register settings class and migration paths
- Update Blade view to resolve settings from container
- Add spatie/laravel-settings ^3.3 as dependency
- Update README with new installation and usage instructions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+45-7Lines changed: 45 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,28 +12,66 @@
12
12
13
13
This Laravel package seamlessly integrates Umami analytics into your Blade templates. Easily track website visits and user engagement directly within your Laravel application, providing valuable insights into your website's performance. This package simplifies the integration process, saving you time and effort. With minimal configuration, you can leverage Umami's powerful analytics features to gain a clearer understanding of your audience and website usage.
14
14
15
+
## Requirements
16
+
17
+
- PHP 8.2+
18
+
- Laravel 11+
19
+
-[spatie/laravel-settings](https://github.com/spatie/laravel-settings) configured (the `settings` table must exist)
20
+
15
21
## Installation
16
22
17
-
You can install the package via composer:
23
+
Install the package via composer:
18
24
19
25
```bash
20
26
composer require jeffersongoncalves/laravel-umami
21
27
```
22
28
23
-
## Usage
29
+
Run the migrations to create the Umami settings in your database:
24
30
25
-
Publish config file.
31
+
```bash
32
+
php artisan migrate
33
+
```
34
+
35
+
Optionally, you can publish the settings migration to customize defaults:
0 commit comments