<?php
namespace App\Http\Requests\Api\v1\Route;

use Gate;
use App\Models\Page;
use Illuminate\Validation\Rule;
use App\Http\Requests\FormRequest;

class ResolveRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'path' => 'required',
            'host' => 'required'
        ];
    }

    /**
     * Get the error messages for the defined validation rules.
     *
     * @return array
     */
    public function messages()
    {
        return [
        ];
    }
}

<?php
namespace App\Http\Requests\Api\v1\Route;

use Gate;
use App\Models\Page;
use Illuminate\Validation\Rule;
use App\Http\Requests\FormRequest;

class ResolveRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'path' => ['string','nullable'],
            'host' => 'required'
        ];
    }

    /**
     * Get the error messages for the defined validation rules.
     *
     * @return array
     */
    public function messages()
    {
        return [
        ];
    }
}

Resolve route allow empty / nullable path
Resolve route allow empty / nullable path
