Esempio n. 1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     //社团展示页面
     //社团活动列表
     $acts = Models\Associate::find($id)->getActs;
     $assoc = Models\Associate::find($id);
     return view('home.associate.show', compact('assoc', 'acts'));
 }
Esempio n. 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $assoc = Models\Associate::find($id);
     if ($assoc->delete()) {
         return redirect(action('Admin\\AssociateController@index'));
     }
 }