mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-11-03 07:39:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			74 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Database\Seeders;
 | 
						|
 | 
						|
use Illuminate\Database\Seeder;
 | 
						|
use Illuminate\Support\Facades\DB;
 | 
						|
use Illuminate\Support\Str;
 | 
						|
 | 
						|
class LabelsSeeder extends Seeder
 | 
						|
{
 | 
						|
    public function run()
 | 
						|
    {
 | 
						|
        $os = [
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "Docker",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "Apache2",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "MySQL",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "FTP",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "Mail",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "PHP 8",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "PHP 7.4",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "PHP 8.1",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "Idling",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "Uptime",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ],
 | 
						|
            [
 | 
						|
                "id" => Str::random(8),
 | 
						|
                "label" => "API",
 | 
						|
                "created_at" => date('Y-m-d H:i:s')
 | 
						|
            ]
 | 
						|
        ];
 | 
						|
 | 
						|
        DB::table('labels')->insert($os);
 | 
						|
 | 
						|
    }
 | 
						|
}
 |