added config example in provider stub

This commit is contained in:
denisdulici
2020-04-18 19:53:12 +03:00
parent 166060c66d
commit cff93178b4

View File

@ -17,6 +17,7 @@ class $NAME$ extends Provider
$this->loadTranslations();
$this->loadMigrations();
$this->loadFactories();
//$this->loadConfig();
}
/**
@ -73,6 +74,16 @@ class $NAME$ extends Provider
$this->loadFactoriesFrom(__DIR__ . '/../$FACTORIES_PATH$');
}
/**
* Load config.
*
* @return void
*/
public function loadConfig()
{
$this->mergeConfigFrom(__DIR__ . '/../$PATH_CONFIG$/config.php', '$ALIAS$');
}
/**
* Load routes.
*