public function updateSettings()
    {
        $settings = \Input::all();

        foreach ($settings as $key => $value) {
            $option = str_replace('_', '.', $key);

            Option::findByKey($option)->update([
                'value' => $value,
            ]);
        }

        return \Redirect::back()->withFlashMessage('Settings has been successfully updated!');
    }
public function updateSettings()
    {
        $settings = \Input::all();

        foreach ($settings as $key => $value) {
            $option = str_replace('_', '.', $key);

            Option::findByKey($option)->update([
                'value' => $value,
            ]);
        }

        return \Redirect::back()->withFlashMessage('Settings has been successfully updated!');
    }
public function updateSettings ( ) { $ settings = \ Input :: all ( ) ; foreach ( $ settings as $ key => $ value ) { $ option = str_replace ( '_' , '.' , $ key ) ; Option :: findByKey ( $ option ) -> update ( [ 'value' => $ value , ] ) ; } return \ Redirect :: back ( ) -> withFlashMessage ( 'Settings has been successfully updated!' ) ; }
Update the settings.

@return mixed
Update the settings .