/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     \Md\Category::truncate();
     DB::table('categories')->insert(['categoryName' => 'Art']);
     DB::table('categories')->insert(['categoryName' => 'Crafts']);
     DB::table('categories')->insert(['categoryName' => 'Dance']);
     DB::table('categories')->insert(['categoryName' => 'Design']);
     DB::table('categories')->insert(['categoryName' => 'Education']);
     DB::table('categories')->insert(['categoryName' => 'Fashion']);
     DB::table('categories')->insert(['categoryName' => 'Film & Video']);
     DB::table('categories')->insert(['categoryName' => 'Food']);
     DB::table('categories')->insert(['categoryName' => 'Games']);
     DB::table('categories')->insert(['categoryName' => 'Journalism']);
     DB::table('categories')->insert(['categoryName' => 'Music']);
     DB::table('categories')->insert(['categoryName' => 'Photography']);
     DB::table('categories')->insert(['categoryName' => 'Technology']);
 }
 /**
  * Gets all the categories of innovations possible
  * @return \Illuminate\Database\Eloquent\Collection|static[]
  *
  */
 public function getAllCategories()
 {
     return $this->category->all();
 }
 /**
  * Gets all the innovations in a particular category
  * @param $category
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function getCategory($category)
 {
     $innovations = $this->repo->getCategory($category);
     $categoryName = Category::where('id', '=', $category)->first()->categoryName;
     return view('innovation.category', compact('categoryName', 'innovations'));
 }