for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hhxsv5\LaravelS\Illuminate\Cleaners;
use Illuminate\Container\Container;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Facade;
class EventCleaner implements CleanerInterface
{
public function clean(Container $app, Container $snapshot)
$app->forgetInstance('events');
Facade::clearResolvedInstance('events');
Model::setEventDispatcher($app['events']);
}