public function testCheckin()
 {
     $user = FactoryMuffin::create('RainLab\\User\\Models\\User');
     $location = FactoryMuffin::create('DMA\\Friends\\Models\\Location');
     $params = ['object' => $location, 'user' => $user];
     FriendsLog::checkin($params);
 }
 public function onAuthLogin($event)
 {
     $user = Auth::getUser();
     $location = LocationManager::getLocation();
     if ($location) {
         $data = ['user' => $user, 'object' => $location];
         FriendsLog::checkin($data);
     }
 }