Closed rikiless closed 3 years ago
Yeah, that should be possible, assuming you are using the capsule setup from the readme here - https://github.com/illuminate/database (you will also need the optional events part).
Here is an idea how to make it work (not tested):
$dataSource = new Clockwork\DataSources\EloquentDataSource(
$capsule->getDatabaseManager(),
$eventDispatcher
));
$clockwork->addDataSource($dataSource);
$dataSource->listenToEvents();
thanks
I am using vanilla PHP application with DB/Eloquent integration. Is there easy way to configure clockwork to log these database queries?