protected function flashInput(array $fields)
    {
        $flash = array_where($fields, function($key, $config){

            return $config['flash'];

        });

        Input::flashOnly(array_keys($flash));
    }
protected function flashInput(array $fields)
    {
        $flash = array_where($fields, function($key, $config){

            return $config['flash'];

        });

        Input::flashOnly(array_keys($flash));
    }
protected function flashInput ( array $ fields ) { $ flash = array_where ( $ fields , function ( $ key , $ config ) { return $ config [ 'flash' ] ; } ) ; Input :: flashOnly ( array_keys ( $ flash ) ) ; }
Flash only fields where flash = true

@param array $fields
Flash only fields where flash = true