Closed MrBean14 closed 6 years ago
Sorry guys, might have been too quick. Had a look in the helpers file.
function activity(string $logName = null): ActivityLogger
{
$defaultLogName = config('laravel-activitylog.default_log_name');
return app(ActivityLogger::class)->useLog($logName ?? $defaultLogName);
}
So it was clear that the function "activity" needs some text. So I retried with
activity('Import')->log('Look mum, I logged something');
That worked...
Best regards,
Davy
Dear all,
I have imported ActivityLog V1 into my project. All was fine until I put the first line in the manual in my Controller.
activity()->log('Look mum, I logged something');
Unfortunately this shows the following error :
Am I forgetting anything ?
Best regards,
Davy