public function newCompetition(Request $request)
 {
     $this->validate($request, ['name' => 'required']);
     $name = $request->get('name');
     competition::create(['compName' => $name]);
     return redirect('home');
 }
 public function run()
 {
     DB::table('competition')->delete();
     competition::create(['compName' => 'Coding is fun!']);
     competition::create(['compName' => 'Coding isn\'t fun!']);
     competition::create(['compName' => 'Coding is meh...']);
 }