The config_path function returns the fully qualified path to your application's config directory. You may also use the config_path function to generate a fully qualified path to a given file within the application's configuration directory:
$path config_path();

$path config_path('app.php');
    {

        if (
$this->app->runningInConsole()) {

            
$this->publishes([

                
__DIR__.'/../config/octane.php' => config_path('octane.php'),

            ], 
'octane-config');

        }

    }