/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $settings = Setting::first(); return view('admin.settings.edit', compact('settings')); }
/** * Bootstrap any application services. * * @return void */ public function boot() { $settings = Setting::first(); view()->share('settings', $settings); }