src/Http/ParsesFlexibleAttributes.php
/**
     * Check if given request should be handled by the middleware
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
Check if given request should be handled by the middleware
@param  \Illuminate\Http\Request  $request
@return bool
Check if given request should be handled by the middleware @param \ Illuminate \ Http \ Request $request @return bool
protected function requestHasParsableFlexibleInputs(Request $request)
    {
        return (in_array($request->method(), ['POST','PUT']) &&
                is_string($request->input(FlexibleAttribute::REGISTER)));
    }
protected function requestHasParsableFlexibleInputs ( Request $ request ) { return ( in_array ( $ request -> method ( ) , [ 'POST' , 'PUT' ] ) && is_string ( $ request -> input ( FlexibleAttribute :: REGISTER ) ) ) ; }
Check if given request should be handled by the middleware
 @param  \Illuminate\Http\Request  $request
 @return bool
Check if given request should be handled by the middleware @param \ Illuminate \ Http \ Request $request @return bool