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:
<?php $path = config_path();

$path = config_path('app.php');
<?php     {

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

            $this->publishes([

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

            ], 'flare-config');



            $this->publishes([
<?php             ], 'flare-config');



            $this->publishes([

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

            ], 'ignition-config');



            if (isset($_SERVER['argv']) && ['artisan', 'tinker'] === $_SERVER['argv']) {