ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/vendor/froiden/envato/src/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/vendor/froiden/envato/src/FroidenEnvatoServiceProvider.php

<?php

namespace Froiden\Envato;

use Froiden\Envato\Commands\MigrateCheckCommand;
use Froiden\Envato\Commands\NewVersion;
use Froiden\Envato\Commands\NewVersionModule;
use Froiden\Envato\Commands\VendorCleanUpCommand;
use Illuminate\Support\ServiceProvider;

class FroidenEnvatoServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/Config/froiden_envato.php','froiden_envato'
        );
        $this->commands([
            VendorCleanUpCommand::class,
            NewVersion::class,
            NewVersionModule::class,
            MigrateCheckCommand::class
        ]);
    }

    /**
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function boot()
    {
        $this->publishFiles();

        include __DIR__ . '/routes.php';
    }

    public function publishFiles()
    {
        $this->publishes([
            __DIR__ . '/Config/froiden_envato.php' => config_path('froiden_envato.php'),
        ]);

        $this->publishes([
            __DIR__ . '/Migrations/' => database_path('migrations')
        ], 'migrations');

        $this->publishes([
            __DIR__ . '/Views' => resource_path('views/vendor/froiden-envato'),
        ]);

    }
}

Zerion Mini Shell 1.0