public function chitiettintuc($id) { $brands = $this->brands; $socho = $this->sochoxe; $tintucs = $this->tintucs; $tintuc = TinTuc::where('id', $id)->get()->first(); $tintuckhac = TinTuc::whereNotIn('id', [$id])->get(); return view('frontend.pages.chitiettintuc', compact('tintuc', 'tintucs', 'socho', 'brands', 'tintuckhac')); }
public function edit($id) { $data = TinTuc::where('id', $id)->get()->first(); //dd($data); die(); return view('backend.tintuc.edit', compact('data')); }