Added created_at to os seeder
Added created_at to os seeder
This commit is contained in:
parent
9db3af4bd1
commit
30f18c9419
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Database\Seeders;
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Carbon\Carbon;
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
@ -15,34 +16,34 @@ class OsSeeder extends Seeder
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$os = [
|
$os = [
|
||||||
["name" => "None"],
|
["name" => "None", "created_at" => Carbon::now()],
|
||||||
["name" => "Centos 7"],
|
["name" => "Centos 7", "created_at" => Carbon::now()],
|
||||||
["name" => "Centos 8"],
|
["name" => "Centos 8", "created_at" => Carbon::now()],
|
||||||
["name" => "Centos"],
|
["name" => "Centos", "created_at" => Carbon::now()],
|
||||||
["name" => "Debian 9"],
|
["name" => "Debian 9", "created_at" => Carbon::now()],
|
||||||
["name" => "Debian 10"],
|
["name" => "Debian 10", "created_at" => Carbon::now()],
|
||||||
["name" => "Debian"],
|
["name" => "Debian", "created_at" => Carbon::now()],
|
||||||
["name" => "Fedora 32"],
|
["name" => "Fedora 32", "created_at" => Carbon::now()],
|
||||||
["name" => "Fedora 33"],
|
["name" => "Fedora 33", "created_at" => Carbon::now()],
|
||||||
["name" => "Fedora"],
|
["name" => "Fedora", "created_at" => Carbon::now()],
|
||||||
["name" => "FreeBSD 11.4"],
|
["name" => "FreeBSD 11.4", "created_at" => Carbon::now()],
|
||||||
["name" => "FreeBSD 12.1"],
|
["name" => "FreeBSD 12.1", "created_at" => Carbon::now()],
|
||||||
["name" => "FreeBSD"],
|
["name" => "FreeBSD", "created_at" => Carbon::now()],
|
||||||
["name" => "OpenBSD 6.7"],
|
["name" => "OpenBSD 6.7", "created_at" => Carbon::now()],
|
||||||
["name" => "OpenBSD 6.8"],
|
["name" => "OpenBSD 6.8", "created_at" => Carbon::now()],
|
||||||
["name" => "OpenBSD"],
|
["name" => "OpenBSD", "created_at" => Carbon::now()],
|
||||||
["name" => "Ubuntu 16.04"],
|
["name" => "Ubuntu 16.04", "created_at" => Carbon::now()],
|
||||||
["name" => "Ubuntu 18.04"],
|
["name" => "Ubuntu 18.04", "created_at" => Carbon::now()],
|
||||||
["name" => "Ubuntu 20.04"],
|
["name" => "Ubuntu 20.04", "created_at" => Carbon::now()],
|
||||||
["name" => "Ubuntu 20.10"],
|
["name" => "Ubuntu 20.10", "created_at" => Carbon::now()],
|
||||||
["name" => "Ubuntu"],
|
["name" => "Ubuntu", "created_at" => Carbon::now()],
|
||||||
["name" => "Windows Server 2008"],
|
["name" => "Windows Server 2008", "created_at" => Carbon::now()],
|
||||||
["name" => "Windows Server 2012"],
|
["name" => "Windows Server 2012", "created_at" => Carbon::now()],
|
||||||
["name" => "Windows Server 2016"],
|
["name" => "Windows Server 2016", "created_at" => Carbon::now()],
|
||||||
["name" => "Windows Server 2019"],
|
["name" => "Windows Server 2019", "created_at" => Carbon::now()],
|
||||||
["name" => "Windows 10"],
|
["name" => "Windows 10", "created_at" => Carbon::now()],
|
||||||
["name" => "Custom"],
|
["name" => "Custom", "created_at" => Carbon::now()],
|
||||||
["name" => "Other"]
|
["name" => "Other", "created_at" => Carbon::now()]
|
||||||
];
|
];
|
||||||
|
|
||||||
DB::table('os')->insert($os);
|
DB::table('os')->insert($os);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user