File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,12 @@ You can install the package via composer:
33
33
composer require thethunderturner/filament-latex
34
34
```
35
35
36
- You can publish and run the migrations with:
36
+ With the install command, the package will automatically publish the migrations and the config file.
37
+ ``` bash
38
+ php artisan filament-latex:install
39
+ ```
40
+
41
+ Optionally, you can publish them individually:
37
42
38
43
``` bash
39
44
php artisan vendor:publish --tag=" filament-latex-migrations"
Original file line number Diff line number Diff line change 4
4
5
5
use Filament \Support \Assets \AlpineComponent ;
6
6
use Filament \Support \Facades \FilamentAsset ;
7
+ use Spatie \LaravelPackageTools \Commands \InstallCommand ;
7
8
use Spatie \LaravelPackageTools \Package ;
8
9
use Spatie \LaravelPackageTools \PackageServiceProvider ;
9
10
@@ -18,7 +19,13 @@ public function configurePackage(Package $package): void
18
19
->hasConfigFile ()
19
20
->hasRoute ('web ' )
20
21
->hasMigrations ($ this ->getMigrations ())
21
- ->hasTranslations ();
22
+ ->hasTranslations ()
23
+ ->hasInstallCommand (function (InstallCommand $ command ) {
24
+ $ command
25
+ ->publishConfigFile ()
26
+ ->publishMigrations ()
27
+ ->askToRunMigrations ();
28
+ });
22
29
}
23
30
24
31
public function packageBooted (): void
You can’t perform that action at this time.
0 commit comments