public function show($id) { $data = Modvel::find($id); if ($data != null) { return view("Modvel::" . $this->theme . ".show")->with('id', $id)->with('data', $data); } return back(); }
public function index() { $datas = Modvel::orderBy('id', 'desc')->get(); return $datas; }