/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(UserTableSeeder::class); $this->call(CatalogSeeder::class); $this->call(SettingsTableSeeder::class); $this->call(ProductGalleryTableSeeder::class); \Priola\City::create(['title' => 'Москва']); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { \Priola\City::create(['title' => 'Москва', 'is_title_visible' => true, 'x' => 200, 'y' => 360]); \Priola\City::create(['title' => 'Санкт-Петербург', 'is_title_visible' => true, 'x' => 205, 'y' => 281]); \Priola\City::create(['title' => 'Смоленск', 'is_title_visible' => true, 'x' => 160, 'y' => 333]); \Priola\City::create(['title' => 'Барнаул', 'is_title_visible' => true, 'x' => 520, 'y' => 532]); \Priola\City::create(['title' => 'Брянск', 'is_title_visible' => true, 'x' => 159, 'y' => 363]); \Priola\City::create(['title' => 'Клинцы', 'is_title_visible' => true, 'x' => 140, 'y' => 358]); \Priola\City::create(['title' => 'Воронеж', 'is_title_visible' => true, 'x' => 171, 'y' => 411]); \Priola\City::create(['title' => 'Владивосток', 'is_title_visible' => true, 'x' => 966, 'y' => 548]); \Priola\City::create(['title' => 'Екатеринбург', 'is_title_visible' => true, 'x' => 357, 'y' => 444]); \Priola\City::create(['title' => 'Иркутск', 'is_title_visible' => true, 'x' => 685, 'y' => 542]); \Priola\City::create(['title' => 'Нижний Новгород', 'is_title_visible' => true, 'x' => 246, 'y' => 382]); \Priola\City::create(['title' => 'Омск', 'is_title_visible' => true, 'x' => 440, 'y' => 498]); \Priola\City::create(['title' => 'Оренбург', 'is_title_visible' => true, 'x' => 283, 'y' => 486]); \Priola\City::create(['title' => 'Пенза', 'is_title_visible' => true, 'x' => 224, 'y' => 418]); \Priola\City::create(['title' => 'Ростов-на-Дону', 'is_title_visible' => true, 'x' => 132, 'y' => 457]); \Priola\City::create(['title' => 'Самара', 'is_title_visible' => true, 'x' => 260, 'y' => 447]); \Priola\City::create(['title' => 'Саранск', 'is_title_visible' => true, 'x' => 235, 'y' => 413]); \Priola\City::create(['title' => 'Тольятти', 'is_title_visible' => true, 'x' => 254, 'y' => 440]); \Priola\City::create(['title' => 'Томск', 'is_title_visible' => true, 'x' => 543, 'y' => 484]); }
public function getCityList() { return City::with('regionTechnologies')->with('regionDistributors')->with('regionPartners')->with('regionWorkshops')->get()->toArray(); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { return View('admin.regionWorkshops.edit', ['cityList' => City::orderBy('title')->lists('title', 'id'), 'regionWorkshop' => RegionWorkshop::find($id)]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { return View('admin.regionTechnologies.edit', ['cityList' => City::orderBy('title')->lists('title', 'id'), 'regionTechnology' => RegionTechnology::find($id)]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { return View('admin.regionDistributors.edit', ['cityList' => City::orderBy('title')->lists('title', 'id'), 'regionDistributor' => RegionDistributor::find($id)]); }