Closed ChristopherDosin closed 9 years ago
where do you use activity? i have same problem
@mohammad6006 namespaces must be imported at the top of the file.
For example:
<?php
use Activity;
class BlaBlaBla...
This also happens to me when I try to use the log in login event inside my module
namespace Modules\Account\Events\Handlers;
use Activity;
use Illuminate\Auth\Events\Authenticated;
class LogAuthenticated
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param \Modules\Account\Events\Authenticated $event
* @return void
*/
public function handle(Authenticated $event)
{
Activity::log('User login authenticated');
}
}
and return [Tue Jul 18 14:42:21 2017] 127.0.0.1:57017 Invalid request (Unexpected EOF)
Hey, great package if it works.
Currently i am getting the above error. I use the log in my controller after the save method
EDIT: I have to use