Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function boot() |
||
12 | { |
||
13 | if ($this->app->runningInConsole()) { |
||
14 | $this->publishes([ |
||
15 | __DIR__.'/../config/personal-data-export.php' => config_path('personal-data-export.php'), |
||
16 | ], 'config'); |
||
17 | |||
18 | $this->publishes([ |
||
19 | __DIR__.'/../resources/views' => base_path('resources/views/vendor/personal-data-export'), |
||
20 | ], 'views'); |
||
21 | } |
||
22 | |||
23 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'personal-data-export'); |
||
24 | |||
25 | Route::macro('personalDataExports', function (string $url) { |
||
26 | Route::get("$url/{zipFilename}", '\Spatie\PersonalDataExport\Http\Controllers\PersonalDataExportController@export') |
||
27 | ->name('personal-data-exports'); |
||
28 | }); |
||
29 | |||
30 | $this->commands([ |
||
31 | CleanOldPersonalDataExportsCommand::class, |
||
32 | ]); |
||
33 | } |
||
34 | |||
40 |