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');
    public function boot()

    {

        
$this->publishes([

            
__DIR__.'/../../config/config.php' => config_path('image.php')

        ]);
        $config __DIR__.'/../../../../imagecache/src/config/config.php';



        
$this->publishes([

            
$config => config_path('imagecache.php')

        ]);