kevupton/laravel-package-service-provider 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kevupton/laravel-package-service-provider

最新稳定版本:v0.0.5

Composer 安装命令:

composer require kevupton/laravel-package-service-provider

包简介

Service provider for laravel to allow for multiple implementations

README 文档

README

Improved service provider functions for handling cross application code.

Src

<?php /**  * Created by PhpStorm.  * User: kevin  * Date: 3/12/2017  * Time: 6:11 PM  */ namespace Kevupton\LaravelPackageServiceProvider; use Illuminate\Foundation\AliasLoader; use Illuminate\Support\ServiceProvider as BaseServiceProvider; class ServiceProvider extends BaseServiceProvider { /**  * Registers a configuration  *  * @param string $path  * @param string $name  */ protected function registerConfig ($path, $name) { $this->publishes([__DIR__ . $path => config_path($name)]); } /**  * Determines whether this application is an instance of Lumen  *  * @return bool  */ protected function isLumen () { return is_a($this->app, 'Laravel\Lumen\Application'); } /**  * Determines whether this application is an instance of Laravel  *  * @return bool  */ protected function isLaravel () { return is_a($this->app, 'Illuminate\Foundation\Application'); } /**  * Register Alias function to register an alias based upon  * whether they are using lumen or laravel  *  * @param string $class  * @param string $name  */ protected function registerAlias ($class, $name) { if ($this->isLaravel()) { AliasLoader::getInstance()->alias($name, $class); } elseif ($this->isLumen()) { if (!class_exists($name)) { class_alias($class, $name); } } } }

统计信息

  • 总下载量: 44.49k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固