Hi,
I am really not sure if this is the right place for my question,
I have successfully included Eloquent into my Slim application and that all fine and dandy but I would love to have changes tracked. I have tried Venturecraft\Revisionable but that for some reason does not trigger on saves etc anyway my question is now with Auditable.
trying to use Auditable within my Eloquent model throws the following error:
Type: RuntimeException
Message: A facade root has not been set.
File: /vagrant/vendor/illuminate/support/Facades/Facade.php
Googleing shows that i should instantiate Facade but apparently this is achieved through
$settings = $container->get(‘settings’)[‘db’];
$capsule = new Illuminate\Database\Capsule\Manager;
$capsule->addConnection($settings);
$capsule->setAsGlobal();
$capsule->bootEloquent();
Which apparently it is not. Any pointers would be highly welcome.