public function store(Request $request) { $this->validate($request, ['name' => 'required', 'location' => 'required', 'type' => 'required']); Outlet::create($request->all()); $outlets = Outlet::all(); $html = view('admin.settings.outlet_table')->withOutlets($outlets); return $html; }
public function cvp() { $vp = Outlet::all(); // dd($vp); return view('pages.outlets')->with('outlets', $vp); }