/**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     $concert = Concert::find($id);
     $concert->Artiste = $request->input("artiste");
     $concert->Lieu = $request->input("lieu");
     $_date = $request->input("date");
     $_dateTemp = DateTime::createFromFormat('Y-m-d', $_date);
     $date = $_dateTemp->format('Y-m-d');
     $_time = $request->input("time");
     $_timeTemp = DateTime::createFromFormat('H:i', $_time);
     $time = $_timeTemp->format('H:i:s');
     $datetime = $date . ' ' . $time;
     $concert->Date = $datetime;
     $concert->Prix = (double) $request->input("prix");
     $concert->save();
     return redirect('/login');
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show(Request $request)
 {
     $id_concert = (int) $request->get('concert');
     $id_artiste = (int) $request->get('artiste');
     $concert = Concert::find($id_concert);
     $artiste = Artiste::find($id_artiste);
     return view('homepage.detail-concert', ['concert' => $concert, 'artiste' => $artiste]);
 }