Beispiel #1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     \Model\Faculty\Faculty::truncate();
     // factory(\Model\Faculty\Faculty::class, 10)->create();
     \Model\Faculty\Faculty::create(['id' => 1, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'edb', 'name_en' => 'Letters', 'name_tr' => 'Edebiyat', 'name_kg' => 'Гуманитардык', 'name_ru' => 'Гуманитарный']);
     \Model\Faculty\Faculty::create(['id' => 2, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'fen', 'name_en' => 'Science', 'name_tr' => 'Fen', 'name_kg' => 'Табигый Илимдер', 'name_ru' => 'Точные Науки']);
     \Model\Faculty\Faculty::create(['id' => 3, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'arts', 'name_en' => 'Fine Arts', 'name_tr' => 'Güzel Sanatlar', 'name_kg' => 'Көркөм Өнөр', 'name_ru' => 'Искусство']);
     \Model\Faculty\Faculty::create(['id' => 4, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'iibf', 'name_en' => 'Economics and Administrative Science', 'name_tr' => 'İktisadi ve İdari Bilimler', 'name_kg' => 'Экономика жана Башкаруу', 'name_ru' => 'Экономика и Управление']);
     \Model\Faculty\Faculty::create(['id' => 5, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'teo', 'name_en' => 'Theology', 'name_tr' => 'İlahiyat', 'name_kg' => 'Теология', 'name_ru' => 'Теология']);
     \Model\Faculty\Faculty::create(['id' => 6, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'ilet', 'name_en' => 'Communication', 'name_tr' => 'İletişim', 'name_kg' => 'Комуникация', 'name_ru' => 'Комуникация']);
     \Model\Faculty\Faculty::create(['id' => 7, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'muh', 'name_en' => 'Engineering', 'name_tr' => 'Mühendislik', 'name_kg' => 'Инженердик', 'name_ru' => 'Инженерия']);
     \Model\Faculty\Faculty::create(['id' => 8, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'vet', 'name_en' => 'Veterinary', 'name_tr' => 'Veteriner', 'name_kg' => 'Ветеринардык', 'name_ru' => 'Ветеринария']);
     \Model\Faculty\Faculty::create(['id' => 9, 'type' => 'faculty', 'uid' => generate_id(), 'code' => 'ziraat', 'name_en' => 'Agriculture', 'name_tr' => 'Ziraat', 'name_kg' => 'Айыл Чарба', 'name_ru' => 'Сельскохозяйственный']);
     \Model\Faculty\Faculty::create(['id' => 10, 'type' => 'highschool', 'uid' => generate_id(), 'code' => 'foreign', 'name_en' => 'Foreign Languages', 'name_tr' => 'Yabancı Diller', 'name_kg' => 'Чет Тилдер', 'name_ru' => 'Иностранные Языки']);
     \Model\Faculty\Faculty::create(['id' => 11, 'type' => 'highschool', 'uid' => generate_id(), 'code' => 'beden', 'name_en' => 'Physical Education and Sports', 'name_tr' => 'Beden Eğitimi ve Spor', 'name_kg' => 'Физкультура жана Спорт', 'name_ru' => 'Физкультура и Спорт']);
     \Model\Faculty\Faculty::create(['id' => 12, 'type' => 'highschool', 'uid' => generate_id(), 'code' => 'turizm', 'name_en' => 'Tourism and Hotel Management', 'name_tr' => 'Turizm ve Otelcilik', 'name_kg' => 'Туризм жана Мейманкана Иштетүү', 'name_ru' => 'Туризм и Гостиничное Дело']);
     \Model\Faculty\Faculty::create(['id' => 13, 'type' => 'highschool', 'uid' => generate_id(), 'code' => 'meslek', 'name_en' => 'Vocational High School', 'name_tr' => 'Meslek Yüksekokulu', 'name_kg' => 'Кесиптик Жогорку Мектеби', 'name_ru' => 'Профессиональная Высшая Школа']);
 }
Beispiel #2
0
 /**
  * Find a model by their id.
  *
  * @param $id
  * @return mixed
  */
 public function findById($id)
 {
     return Faculty::findOrFail($id);
 }