Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hamzaelmaghari's avatar

Spatie Valuestore Coverage

Hi,

I Just wanted to use spatie/laravel-valuestore package I used it with no problem.

I wanted to extend it to conver all my application settings such as SMTP Mail config & .env file etc ...

How I can do that ?

BTW I have used a helper that works fine in the views.

function settings($key = null, $default = null) {
    if ($key === null) {
        return app(App\Settings::class);
    }
    return app(App\Settings::class)->get($key, $default);
}

@Sinnbeck -> HELP :)

0 likes
0 replies

Please or to participate in this conversation.