/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     IndustryType::create(['name' => 'IT']);
     IndustryType::create(['name' => 'Engineering']);
     IndustryType::create(['name' => 'Electricals']);
     IndustryType::create(['name' => 'Construction']);
     IndustryType::create(['name' => 'Automobiles']);
     IndustryType::create(['name' => 'Printing']);
 }
 public function store(Request $request)
 {
     $validator = Validator::make($data = $request->all(), IndustryType::$rules);
     if ($validator->fails()) {
         return Redirect::back()->withErrors($validator)->withInput();
     }
     IndustryType::create($data);
     // IndustryType::create([
     //     'name' => $request->name,
     //     'status' => 1,
     // ]);
     return Redirect::route($this->route . 'index')->with('message', 'New IndustryType has been Added!');
 }