Skip to content

Commit

Permalink
Add @config('settings.group.setting')
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvenga committed Dec 11, 2022
1 parent f1c6d25 commit 0232ec2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ or Blade directive @settings
@settings('group.setting')
```

or as part of native Laravel config()
```php
@config('settings.group.setting')
```

For PHPStorm you can set this blade directive with [This instruction](https://www.jetbrains.com/help/phpstorm/blade-page.html)

## Usage with MoonShine Laravel Admin
Expand Down
2 changes: 2 additions & 0 deletions src/LaravelSiteSettingsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public function register()
public function boot()
{

config(['settings' => app('settings')->all()]);

if ($this->app->runningInConsole()) {

$this->publishes([
Expand Down

0 comments on commit 0232ec2

Please sign in to comment.