app/Http/Requests/DeliveryTypeRequest.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 [
            'name' => 'required|string|max:255',
            'cost' => 'required|numeric',
        ];
    }
public function rules ( ) : array { return [ 'name' => '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 .