/**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     $this->validateCommon($request);
     $masterClass = MasterClass::find($id);
     $this->saveMasterClass($request, $masterClass);
     return redirect('/admin/masterClasses');
 }
예제 #2
0
 public function masterClass($id)
 {
     return view('home.masterClasses.masterClass', ['masterClass' => MasterClass::find($id)]);
 }