src/Resources/Resource.php
/**
     * Create a validator instance for a resource creation request.
     */
Create a validator instance for a resource creation request.
Create a validator instance for a resource creation request .
public static function validatorForCreation(NovaRequest $request): Validator
    {
        return ValidatorFacade::make($request->all(), static::rulesForCreation($request), [],
            trans('nova-blog::validation.attributes')
        )->after(function ($validator) use ($request) {
            static::afterValidation($request, $validator);
            static::afterCreationValidation($request, $validator);
        });
    }
public static function validatorForCreation ( NovaRequest $ request ) : Validator { return ValidatorFacade :: make ( $ request -> all ( ) , static :: rulesForCreation ( $ request ) , [ ] , trans ( 'nova-blog::validation.attributes' ) ) -> after ( function ( $ validator ) use ( $ request ) { static :: afterValidation ( $ request , $ validator ) ; static :: afterCreationValidation ( $ request , $ validator ) ; } ) ; }
Create a validator instance for a resource creation request.
Create a validator instance for a resource creation request .