/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $tags = Tag::with('posts')->get(); return view('admin.tag.index')->with('tags', $tags); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $tags = Tag::with('posts')->get(); return view('admin.tag.index')->with('tags', $tags); }