a2design/laravel-service-provider

This package is abandoned and no longer maintained. The author suggests using the faustbrian/laravel-service-provider package instead.

DRY Service Provider for Laravel 5 Packages

1.0.0 2016-11-04 04:34 UTC

README

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require faustbrian/laravel-service-provider

Usage

<?php

namespace Vendor\Package;

class ServiceProvider extends \BrianFaust\ServiceProvider\ServiceProvider
{
    public function boot()
    {
        $this->publishMigrations();
        $this->publishConfig();
        $this->publishViews();
        $this->publishAssets();
        $this->loadViews();
        $this->loadTranslations();
    }

    public function register()
    {
        $this->mergeConfig();
    }
}

Security

If you discover a security vulnerability within this package, please send an e-mail to Brian Faust at hello@brianfaust.de. All security vulnerabilities will be promptly addressed.

License

The The MIT License (MIT). Please check the LICENSE file for more details.