Skip to content

Commit

Permalink
v73.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gammamatrix committed Mar 13, 2024
1 parent 62eb8ea commit 9001cdd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions config/playground.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

return [

'about' => (bool) env('PLAYGROUND_ABOUT', true),

/*
|--------------------------------------------------------------------------
| Packages
Expand Down
18 changes: 8 additions & 10 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit 9001cdd

Please sign in to comment.