I'm trying to catch elFinder events, for example, when an user upload a file, download it and things like that. I could do it inside controllers, but I don't want to do it since they are in vendor folder.
How can I catch an event to create a Log file with that info?
Thanks in advance!
@JuanWilde Have you read the Wiki bind entry?
Yes. And after that I wrote the question above. I mean, I have a controller who loads the view with elFinder instance.
var asset_id = id;
$(function () {
var elf = $('#elFinderDiv').elfinder({
customData: {
_token: '{{ csrf_token() }}',
_path: '{{ Config::get('path.to.folder') . '/' . $item->getId() }}',
_alias: asset_id,
},
rememberLastDir: false,
useBrowserHistory: false,
resizable: false,
defaultView: 'list',
url: '{{ route("elfinder.connector") }}',
height: 300,
width: '100%',
uiOptions: {
toolbar: [
['upload'], ['back', 'forward'], ['mkdir'], ['copy', 'paste', 'rm'], ['download'], ['resize']
]
},
}).elfinder('instance');
});
But my issue is that I don't know where to place the callback function in my laravel project to catch events.
But my issue is that I don't know where to place the callback function in my laravel project to catch events.
About laravel, you may not get an answer here. Ask in the barryvdh/laravel-elfinder or community of laravel.
Ok. Thanks for your time again :)