pingcrm/app/Providers/AppServiceProvider.php

38 lines
765 B
PHP
Raw Normal View History

2019-03-05 18:10:11 -03:00
<?php
namespace App\Providers;
2019-08-09 12:33:47 -03:00
use Illuminate\Support\Facades\Storage;
2019-03-05 18:10:11 -03:00
use Illuminate\Support\ServiceProvider;
2020-07-29 11:33:16 -03:00
use League\Glide\Server;
2019-03-05 18:10:11 -03:00
class AppServiceProvider extends ServiceProvider
{
2020-07-29 11:33:16 -03:00
/**
* Register any application services.
*
* @return void
*/
2019-03-05 18:10:11 -03:00
public function register()
2019-08-09 12:33:47 -03:00
{
$this->app->bind(Server::class, function ($app) {
return Server::create([
'source' => Storage::getDriver(),
'cache' => Storage::getDriver(),
'cache_folder' => '.glide-cache',
2019-08-09 13:50:45 -03:00
'base_url' => 'img',
2019-08-09 12:33:47 -03:00
]);
});
2019-03-05 18:10:11 -03:00
}
2021-02-27 10:36:45 -03:00
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
2019-03-18 08:53:00 -03:00
{
2021-02-27 10:36:45 -03:00
//
2019-03-18 08:53:00 -03:00
}
2019-03-05 18:10:11 -03:00
}