public function update(Settings $setting, Request $request)
	{
		$attributes = request()->validate(Settings::$rules, Settings::$messages);

        $setting = $this->updateEntry($setting, $attributes);

        settings(true); // save new settings in session

        log_activity('Setting Updated', 'A Setting was successfully updated', $setting);

        return redirect_to_resource();
	}
public function update(Settings $setting, Request $request)
	{
		$attributes = request()->validate(Settings::$rules, Settings::$messages);

        $setting = $this->updateEntry($setting, $attributes);

        settings(true); // save new settings in session

        log_activity('Setting Updated', 'A Setting was successfully updated', $setting);

        return redirect_to_resource();
	}
public function update ( Settings $ setting , Request $ request ) { $ attributes = request ( ) -> validate ( Settings :: $ rules , Settings :: $ messages ) ; $ setting = $ this -> updateEntry ( $ setting , $ attributes ) ; settings ( true ) ; // save new settings in session log_activity ( 'Setting Updated' , 'A Setting was successfully updated' , $ setting ) ; return redirect_to_resource ( ) ; }
Update the specified setting in storage.

@param Settings $setting
@param Request  $request
@return Response
Update the specified setting in storage .