Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
peripherad
/
database
/
seeders
:
StoreLocationStateSeeder.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Database\Seeders; use App\Models\StoreLocation; use FontLib\Table\Type\loca; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; class StoreLocationStateSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $location_one = StoreLocation::find(1); $location_two = StoreLocation::find(2); if ($location_one){ $location_one->state_id = 1; $location_one->save(); } if ($location_two){ $location_two->state_id = 5; $location_two->save(); } } }