/** * Remove the specified resource from storage. * * @param Gallery $gallery * @return Response */ public function destroy(Gallery $gallery) { $this->gallery->destroy($gallery); flash()->success(trans('core::core.messages.resource deleted', ['name' => trans('gallery::galleries.title.galleries')])); return redirect()->route('admin.gallery.gallery.index'); }
public function index() { $projects = $this->gallery->all(); return view('gallery::public.index', compact('projects')); }