/** * Bootstrap any application services. * * @return void */ public function boot() { // $navigators = Navigators::wherenavactive(1)->orderBy('navSortCode')->get(); view()->share('navigators', $navigators); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(Request $request) { Navigators::destroy($request->navID); return "success"; }