Support the ongoing development of Laravel.io →
Blade Installation Laravel
Last updated 3 months ago.
1

Hi Hamza,

In the Laravel documentation, it says how to update the configuration at runtime.

So you would do this:

$site_title = $request->input('site_title');
config(['meta.title' => $site_title]);

Hope it works out!

Last updated 1 year ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

Hamza Hamza phillnex Joined 9 Mar 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.