Ejemplo n.º 1
0
 /**
  * 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'));
 }
Ejemplo n.º 2
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     $settings = Setting::first();
     view()->share('settings', $settings);
 }