31 lines
366 B
PHP
31 lines
366 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use App\Services\AliyunService;
|
|
|
|
class AliyunServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
$this->app->singleton('aliyunservice', function(){
|
|
|
|
return new AliyunService();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
} |