Your IP : 3.144.227.3


Current Path : /home/lentoinv/lentoria.com/vendor/laravel/framework/src/Illuminate/Foundation/
Upload File :
Current File : /home/lentoinv/lentoria.com/vendor/laravel/framework/src/Illuminate/Foundation/Precognition.php

<?php

namespace Illuminate\Foundation;

class Precognition
{
    /**
     * Get the "after" validation hook that can be used for precognition requests.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Closure
     */
    public static function afterValidationHook($request)
    {
        return function ($validator) use ($request) {
            if ($validator->messages()->isEmpty() && $request->headers->has('Precognition-Validate-Only')) {
                abort(204);
            }
        };
    }
}

?>