src/Row.php
public function getCreationRules(NovaRequest $request)
    {
        $result = [];

        foreach ($this->meta['fields'] as $field) {
            $rules = $this->generateRules($field->getCreationRules($request));
            $result = array_merge_recursive($result, $rules);
        }

        return array_merge_recursive(
            parent::getCreationRules($request),
            $result
        );
    }
public function getCreationRules(NovaRequest $request)
    {
        $result = [];

        foreach ($this->meta['fields'] as $field) {
            $rules = $this->generateRules($field->getCreationRules($request));
            $result = array_merge_recursive($result, $rules);
        }

        return array_merge_recursive(
            parent::getCreationRules($request),
            $result
        );
    }
public function getCreationRules ( NovaRequest $ request ) { $ result = [ ] ; foreach ( $ this -> meta [ 'fields' ] as $ field ) { $ rules = $ this -> generateRules ( $ field -> getCreationRules ( $ request ) ) ; $ result = array_merge_recursive ( $ result , $ rules ) ; } return array_merge_recursive ( parent :: getCreationRules ( $ request ) , $ result ) ; }
Get the creation rules for this field.

@param  \Laravel\Nova\Http\Requests\NovaRequest  $request
@return array|string
Get the creation rules for this field .