Answer the question
In order to leave comments, you need to log in
How to bulk change data?
I have settings in the admin panel like this:
How do I change these settings by accessing the key value, which should match name?
Answer the question
In order to leave comments, you need to log in
If the question is still about Laravel, then:
$setting = Setting::whereKey('title')->first(); // выбираем какую то настройку из базы
$setting->value = 'Магазин по продаже носков'; // устанавливаем значение
$setting->save(); // сохраняем в БД
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question