a2design/laravel-service-provider

该包已被弃用且不再维护。作者建议使用faustbrian/laravel-service-provider包代替。

Laravel 5 包的DRY服务提供者

1.0.0 2016-11-04 04:34 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:03:07 UTC


README

安装

使用Composer在项目的根目录中安装此包。

$ composer require faustbrian/laravel-service-provider

使用

<?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();
    }
}

安全性

如果您在此包中发现安全漏洞,请发送电子邮件至hello@brianfaust.de联系Brian Faust。所有安全漏洞都将得到及时处理。

许可协议

MIT许可协议 (MIT)。请查阅LICENSE文件以获取更多详细信息。