/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $widgets = Widget::All(); return View("widgets.index", ["widgetsList" => $widgets, "editPath" => "Widgets"]); }