예제 #1
0
 public function detailClan($id)
 {
     $clan = Clan::findOrFail($id);
     $clans = Clan::whereNotIn('id', [$id])->get();
     return view('frontend.clans.show')->with(compact('clan', 'clans'));
 }
예제 #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $clan = Clan::findOrFail($id);
     $clan->delete();
     return redirect()->route('admin.clans.index')->with(['message' => 'Delete success!']);
 }