public function viewImages() { $imDets = Items::all(); return view('pages/home1')->with('imDets', $imDets); // return $imDets; // //return 'hello'; // $imDets = 'hello'; // return view('pages/home')->with('imDets',$imDets); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $data['item'] = Items::all(); return view('admin.item', $data); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return $this->success(Items::all()); }