Skip to content

Commit 243374f

Browse files
authored
Publishes migrations and change configuration tag (#36)
* Fix config publishing name & Add readme publish command provider * Publish migrations on service provider
1 parent 2ad1f9d commit 243374f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ You can configure the tus related options via environment variables:
143143
In alternative, if you prefer, you can publish the configuration file in your Laravel installation.
144144

145145
```
146-
php artisan vendor:publish --tag=tusupload-config
146+
php artisan vendor:publish --provider="OneOffTech\TusUpload\Providers\TusUploadServiceProvider" --tag=config
147147
```
148148

149149
### Starting the Tus server

src/Providers/TusUploadServiceProvider.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ public function boot()
2525

2626
$this->publishes([
2727
__DIR__.'/../../config/tusupload.php' => config_path('tusupload.php'),
28-
], 'tusupload-config');
28+
], 'config');
29+
30+
$this->publishes([
31+
__DIR__.'/../../database/migrations/' => database_path('migrations'),
32+
], 'migrations');
2933

3034
if ($this->app->runningInConsole()) {
3135
$this->commands([
@@ -49,7 +53,7 @@ public function register()
4953
$this->app->bind(AuthenticationResolverContract::class, AuthenticationResolver::class);
5054
$this->app->singleton(AuthenticationResolver::class, function($app){
5155
return new AuthenticationResolver(
52-
$app->make(Gate::class),
56+
$app->make(Gate::class),
5357
Auth::createUserProvider(config('auth.guards.api.provider')));
5458
});
5559
}

0 commit comments

Comments
 (0)