app/Http/Requests/ParcelRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules(): array
    {
        return [
            'weight'      => 'required|numeric',
            'length'      => 'required|numeric',
            'width'       => 'required|numeric',
            'height'      => 'required|numeric',
            'description' => 'required|string|max:255',
            'cost'        => 'required|numeric',
        ];
    }
public function rules ( ) : array { return [ 'weight' => 'required|numeric' , 'length' => 'required|numeric' , 'width' => 'required|numeric' , 'height' => 'required|numeric' , 'description' => 'required|string|max:255' , 'cost' => 'required|numeric' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .