/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Vehicule::create(['idVeh' => 1, 'photoVeh' => NULL, 'confVeh' => 2, 'nbPlaceVeh' => 5, 'couleurVeh' => 'blanche', 'defautVeh' => 1, 'idMemb' => 1, 'idMod' => 1, 'idType' => 1]);
     Vehicule::create(['idVeh' => 2, 'photoVeh' => NULL, 'confVeh' => 3, 'nbPlaceVeh' => 5, 'couleurVeh' => 'bleu nuit', 'defautVeh' => 1, 'idMemb' => 2, 'idMod' => 1, 'idType' => 1]);
     Vehicule::create(['idVeh' => 3, 'photoVeh' => NULL, 'confVeh' => 1, 'nbPlaceVeh' => 5, 'couleurVeh' => 'verte pomme', 'defautVeh' => 1, 'idMemb' => 3, 'idMod' => 1, 'idType' => 1]);
 }
 public function add(Request $request)
 {
     $vehicule = Vehicule::create(['photoVeh' => $request->input('photoVeh'), 'confVeh' => $request->input('confVeh'), 'nbPlaceVeh' => $request->input('nbPlaceVeh'), 'couleurVeh' => $request->input('couleurVeh'), 'defautVeh' => $request->input('defautVeh'), 'idMemb' => $request->input('idMemb'), 'idMod' => $request->input('idMod'), 'idType' => $request->input('idType')]);
     $vehicule->save();
     return redirect()->route('backvehicule');
 }