src/controllers/SetupController.php
public function submit(Request $request)
		{
		    $input      = $request->all();
			$state      = $this->setup->saveData($input);
            $result     = [
                'step'      => 'config',
                'success'   => $state,
                'message'   => $state ? 'Config saved OK' : 'Unable to save config',
                'data'      => $input
            ];
            if($state)
            {
                return $this->install();
            }
            return $result;
		}
public function submit(Request $request)
		{
		    $input      = $request->all();
			$state      = $this->setup->saveData($input);
            $result     = [
                'step'      => 'config',
                'success'   => $state,
                'message'   => $state ? 'Config saved OK' : 'Unable to save config',
                'data'      => $input
            ];
            if($state)
            {
                return $this->install();
            }
            return $result;
		}
public function submit ( Request $ request ) { $ input = $ request -> all ( ) ; $ state = $ this -> setup -> saveData ( $ input ) ; $ result = [ 'step' => 'config' , 'success' => $ state , 'message' => $ state ? 'Config saved OK' : 'Unable to save config' , 'data' => $ input ] ; if ( $ state ) { return $ this -> install ( ) ; } return $ result ; }
Handles form data from the setup controller

@method  POST
@param   Request     $request
@return  array
Handles form data from the setup controller