1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-18 00:13:12 +01:00
my-idlers/database/seeders/SettingsSeeder.php
cp6 a314ac99ef Initial v2 commit
Initial v2 commit

Laravel project
2022-02-18 15:48:32 +11:00

35 lines
815 B
PHP

<?php
namespace Database\Seeders;
use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class SettingsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$settings = [
[
"show_versions_footer" => 1,
"show_servers_public" => 0,
"show_server_value_ip" => 0,
"show_server_value_hostname" => 0,
"show_server_value_provider" => 1,
"show_server_value_location" => 1,
"show_server_value_price" => 1,
"show_server_value_yabs" => 1,
"created_at" => Carbon::now()
]
];
DB::table('settings')->insert($settings);
}
}