<?php

namespace Edujugon\Skeleton\Providers;

use Edujugon\Skeleton\Skeleton;
use Illuminate\Support\ServiceProvider;

class SkeletonServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        $config_path = function_exists('config_path') ? config_path('skeleton.php') : 'skeleton.php';

        $this->publishes([
            __DIR__.'/../Config/config.php' => $config_path,
        ], 'config');
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('skeleton', function ($app) {
            return new Skeleton();
        });
    }
}

<?php

namespace Edujugon\Skeleton\Providers;

use Edujugon\Skeleton\Skeleton;
use Illuminate\Support\ServiceProvider;

class SkeletonServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        $config_path = function_exists('config_path') ? config_path('skeleton.php') : 'skeleton.php';

        $this->publishes([
            __DIR__.'/../Config/config.php' => $config_path,
        ], 'config');
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bind(Skeleton::class, function ($app) {
            return new Skeleton();
        });
    }
}

Replace singleton to bind main class. Bind Class name instead hardcoding a string.
Replace singleton to bind main class.
Bind Class name instead hardcoding a string.
