src/TagsFieldServiceProvider.php
protected function routes()
    {
        if ($this->app->routesAreCached()) {
            return;
        }

        Route::middleware(['nova', 'api', Authorize::class])
            ->prefix('nova-vendor/spatie/nova-tags-field')
            ->group(__DIR__.'/../routes/api.php');
    }
protected function routes()
    {
        if ($this->app->routesAreCached()) {
            return;
        }

        Route::middleware(['nova', 'api', Authorize::class])
            ->prefix('nova-vendor/spatie/nova-tags-field')
            ->group(__DIR__.'/../routes/api.php');
    }
protected function routes ( ) { if ( $ this -> app -> routesAreCached ( ) ) { return ; } Route :: middleware ( [ 'nova' , 'api' , Authorize :: class ] ) -> prefix ( 'nova-vendor/spatie/nova-tags-field' ) -> group ( __DIR__ . '/../routes/api.php' ) ; }
Register the field's routes.

@return void
Register the field s routes .