Hi guys, thank you for reading my thread, I'm running Laravel 8 and have some controller function, I want to use a function variable which is {{ $allsettings->site_title }} in a file inside config folder.
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!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community