for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Flaviozantut\Storage;
use Config;
use Flaviozantut\Storage\Posts\FilePostRepository;
use Illuminate\Support\ServiceProvider;
class StorageServiceProvider extends ServiceProvider
{
public function register()
$this->app->bind(
'Flaviozantut\Storage\Posts\PostRepositoryInterface',
function () {
switch (Config::get('skorry.storage')) {
default:
return new FilePostRepository(Config::get('skorry.path'));
break;
}
);