Skip to content

Commit

Permalink
Merge pull request #1016 from maab16/master
Browse files Browse the repository at this point in the history
Fixed custom stub path issue.
  • Loading branch information
nWidart committed Jun 30, 2020
2 parents 032b1ff + a14266d commit ab508c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LaravelModulesServiceProvider.php
Expand Up @@ -32,7 +32,8 @@ public function register()
*/
public function setupStubPath()
{
Stub::setBasePath(__DIR__ . '/Commands/stubs');
$path = $this->app['config']->get('modules.stubs.path') ?? __DIR__ . '/Commands/stubs';
Stub::setBasePath($path);

$this->app->booted(function ($app) {
/** @var RepositoryInterface $moduleRepository */
Expand Down

0 comments on commit ab508c3

Please sign in to comment.