database/seeds/DeliveryTimeSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DeliveryTime::query()->delete();
        DeliveryTime::insert([
            [
                'delivery_at' => '9->12',
            ],
            [
                'delivery_at' => '14->18',
            ],
            [
                'delivery_at' => '10->13',
            ],
            [
                'delivery_at' => '15->19',
            ],
            [
                'delivery_at' => '9->13',
            ],
            [
                'delivery_at' => '18->20',
            ],
        ]);
    }
public function run ( ) { DeliveryTime :: query ( ) -> delete ( ) ; DeliveryTime :: insert ( [ [ 'delivery_at' => '9->12' , ] , [ 'delivery_at' => '14->18' , ] , [ 'delivery_at' => '10->13' , ] , [ 'delivery_at' => '15->19' , ] , [ 'delivery_at' => '9->13' , ] , [ 'delivery_at' => '18->20' , ] , ] ) ; }
Run the database seeds.
Run the database seeds .
// $date = Carbon::now()->format('Y-m-d H:i:s');