diff --git a/README.md b/README.md index 2ec3a26..eb539ba 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This package provides model handling for [Laravel](https://laravel.com/docs/10.x - The configuration in Playground and subpackages permits defining the user model, table and primary key type: `increments` or `uuid`. - Packages are compatible and tested with and without: middleware, roles, policies, privileges, Sanctum... -Read more on using Playground with available packages [on the Playground wiki.](https://github.com/gammamatrix/playground/wiki) +Read more on using Playground [at the Read the Docs for Playground.](https://gammamatrix-playground.readthedocs.io/) ## Installation diff --git a/config/playground.php b/config/playground.php index 9e39758..ef8b4a7 100644 --- a/config/playground.php +++ b/config/playground.php @@ -4,6 +4,8 @@ return [ + 'about' => (bool) env('PLAYGROUND_ABOUT', true), + /* |-------------------------------------------------------------------------- | Packages diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 2edb194..fcf68e2 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -25,18 +25,16 @@ public function boot(): void */ $config = config($this->package); - if (! empty($config['load']) && is_array($config['load'])) { - - if ($this->app->runningInConsole()) { - // Publish configuration - $this->publishes([ - sprintf('%1$s/config/%2$s.php', dirname(__DIR__), $this->package) => config_path(sprintf('%1$s.php', $this->package)), - ], 'playground-config'); - } - + if ($this->app->runningInConsole()) { + // Publish configuration + $this->publishes([ + sprintf('%1$s/config/%2$s.php', dirname(__DIR__), $this->package) => config_path(sprintf('%1$s.php', $this->package)), + ], 'playground-config'); } - $this->about($config); + if (! empty($config['about'])) { + $this->about($config); + } } /**