for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class FileStreamServiceProvider extends ServiceProvider
{
/**
* Deferring the loading of a provider improves performance of the application,
* since it is not loaded from the filesystem on every request.
*
* @var bool
*/
protected $defer = true;
* Register any application services.
* @return void
public function register()
$this->app->singleton('filestream', \App\Services\FileStream::class);
}
* Get the services provided by the provider.
* @return array
public function provides()
return ['filestream'];