Files
admin-php-module/database/seeders/Add1cMenuUploadSetting.php
miroman-afk 415b291785 v.2.18
2022-06-16 12:50:50 +03:00

26 lines
643 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Database\Component\Seeders;
use App\Component\Models\Settings;
use Illuminate\Database\Seeder;
class Add1cMenuUploadSetting extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run() {
$check_setting = Settings::where('name', 'Триггер загрузки меню 1с (НЕ ИЗМЕНЯТЬ!)')->where('code', 12)->first();
if (!$check_setting) {
$setting = new Settings;
$setting->name = 'Триггер загрузки меню 1с (НЕ ИЗМЕНЯТЬ!)';
$setting->value = '0';
$setting->code = 12;
$setting->is_common = 1;
$setting->save();
}
}
}