Check that a setting record exists
This commit is contained in:
@@ -67,7 +67,10 @@ return new class extends Migration
|
||||
$link_light_color = '#084d73';
|
||||
}
|
||||
|
||||
DB::table('settings')->update(['link_light_color' => $link_light_color, 'link_dark_color' => $link_dark_color]);
|
||||
if ($setting) {
|
||||
DB::table('settings')->update(['link_light_color' => $link_light_color, 'link_dark_color' => $link_dark_color]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user