mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
24 lines
442 B
PHP
24 lines
442 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Storage;
|
|
use League\Flysystem\Filesystem;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use League\Flysystem\Memory\MemoryAdapter;
|
|
|
|
class MemoryServiceProvider extends ServiceProvider
|
|
{
|
|
public function boot()
|
|
{
|
|
Storage::extend('memory', function ($app, $config) {
|
|
return new Filesystem(new MemoryAdapter());
|
|
});
|
|
}
|
|
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
}
|