jeudi 9 février 2017

Publishing assets in Laravel Plugin with Tag

Vote count: 0

In Official Docs, it is mentionned that I can assign a tag to 1 or several assets so that I can publish it with :

php artisan vendor:publish --tag=mytag

I tried to use it like that:

In MyPluginServiceProvider

    $this->publishes([__DIR__ . '/../config/kendo-tournaments.php' => config_path('kendo-tournaments.php'),'custom-tag-name']);
    $this->publishes([__DIR__ . '/../database/migrations' => $this->app->databasePath() . '/migrations'], 'custom-tag-name');
    $this->publishes([__DIR__ . '/../database/seeds' => $this->app->databasePath() . '/seeds'], 'custom-tag-name');
    $this->publishes([__DIR__ . '/../database/factories' => $this->app->databasePath() . '/factories'], 'custom-tag-name');

And then I tried to publish it:

php artisan vendor:publish --tag=custom-tag-name

But it doesn't publish anything:

Nothing to publish for tag [custom-tag-name].

Any idea why???

asked 1 min ago

Let's block ads! (Why?)



Publishing assets in Laravel Plugin with Tag

Aucun commentaire:

Enregistrer un commentaire