File "StoreLocationSeeder.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/database/seeders/StoreLocationSeeder.php
File size: 1.01 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Database\Seeders;

use App\Models\StoreLocation;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class StoreLocationSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $default_location = [
            [
                'id'            => 1,
                'title'         => '302 Alabama Street #8',
                'Address'       => '302 Alabama Street #8 Redlands, CA 92373',
                'created_at'    => new \DateTime(),
                'updated_at'    => new \DateTime(),
            ],
            [
                'id'            => 2,
                'title'         => '23372 Madero #A',
                'Address'       => '23372 Madero #A Mission Viejo, CA ** Redlands, CA 92373',
                'created_at'    => new \DateTime(),
                'updated_at'    => new \DateTime(),
            ],
        ];
        StoreLocation::insert($default_location);
    }
}