tshafer/laravel-service-provider

This package is abandoned and no longer maintained. No replacement package was suggested.

DRY Service Provider for Laravel 5 Packages

1.0.3 2016-08-05 04:44 UTC

This package is not auto-updated.

Last update: 2016-11-06 13:38:52 UTC


README

Based on work from draperstud.io

Pull in the package through Composer.

composer require tshafer/laravel-service-provider

Usage

<?php

namespace Vendor\Package;

use Tshafer\ServiceProvider\ServiceProvider as BaseProvider;

class ServiceProvider extends BaseProvider
{
    public function boot()
    {
        $this->setup(__DIR__)
             ->publishMigrations()
             ->publishConfig()
             ->publishViews()
             ->publishAssets()
             ->loadViews()
             ->loadTranslations()
             ->mergeConfig('package');
    }
}