Laravel z walidator

    public function withValidator( $validator )
    {
    
        if ( $validator->fails() ) {
            // Handle errors
        }
        ...
    }

Mohamad