public function detailClan($id) { $clan = Clan::findOrFail($id); $clans = Clan::whereNotIn('id', [$id])->get(); return view('frontend.clans.show')->with(compact('clan', 'clans')); }
/** * 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!']); }