src/Controllers/SettingsController.php
public function update(UpdateRequest $request)
    {
        $this->authorize('update', $eloquent = app('scaffold.model'));

        options_save(array_except(
            $request->all(),
            ['_token', 'save']
        ));

        return back()->with('messages', ['Settings saved successfully']);
    }
public function update(UpdateRequest $request)
    {
        $this->authorize('update', $eloquent = app('scaffold.model'));

        options_save(array_except(
            $request->all(),
            ['_token', 'save']
        ));

        return back()->with('messages', ['Settings saved successfully']);
    }
public function update ( UpdateRequest $ request ) { $ this -> authorize ( 'update' , $ eloquent = app ( 'scaffold.model' ) ) ; options_save ( array_except ( $ request -> all ( ) , [ '_token' , 'save' ] ) ) ; return back ( ) -> with ( 'messages' , [ 'Settings saved successfully' ] ) ; }
Save settings per page.

@param UpdateRequest $request

@return \Illuminate\Http\RedirectResponse
Save settings per page .