Support the ongoing development of Laravel.io →
Laravel
Last updated 1 year ago.
0

You can store it in a config file. For example, you can create a file in the config/ directory and name it admin-settings.php

return [
    'admin_color' => '#fff',
];

get it like:

config('admin-settings.admin_color');

set it like:

$data = [
    'admin_color' => $request->admin_color; // your input
];

Config::write('admin-settings', $data);
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.