src/Controllers/ConfigurationsController.php
public function store(Request $request)
    {
        $this->validate($request, [
            'slug'      => 'required',
            'default'   => 'required',
            'value'     => 'required',
        ]);

        $input = $request->all();

        $configuration = new Configuration();
        $configuration->create($input);

        Session::flash('configuration', 'Setting saved successfully.');
        \Cache::forget('ticketit::settings'); // refresh cached settings
        return redirect()->action('\Kordy\Ticketit\Controllers\ConfigurationsController@index');
    }
public function store(Request $request)
    {
        $this->validate($request, [
            'slug'      => 'required',
            'default'   => 'required',
            'value'     => 'required',
        ]);

        $input = $request->all();

        $configuration = new Configuration();
        $configuration->create($input);

        Session::flash('configuration', 'Setting saved successfully.');
        \Cache::forget('ticketit::settings'); // refresh cached settings
        return redirect()->action('\Kordy\Ticketit\Controllers\ConfigurationsController@index');
    }
public function store ( Request $ request ) { $ this -> validate ( $ request , [ 'slug' => 'required' , 'default' => 'required' , 'value' => 'required' , ] ) ; $ input = $ request -> all ( ) ; $ configuration = new Configuration ( ) ; $ configuration -> create ( $ input ) ; Session :: flash ( 'configuration' , 'Setting saved successfully.' ) ; \ Cache :: forget ( 'ticketit::settings' ) ; // refresh cached settings return redirect ( ) -> action ( '\Kordy\Ticketit\Controllers\ConfigurationsController@index' ) ; }
Store a newly created Configuration in storage.

@param Request $request

@return \Illuminate\Http\RedirectResponse
Store a newly created Configuration in storage .