Ejemplo n.º 1
0
 public function GetUsersFoucsMe()
 {
     $ids = \Fanssystem::FindMyFans(Auth::id());
     $user = Auth::user();
     $myfans = $user->fanssystem_to()->get();
     $fans2 = array();
     foreach ($myfans as $myfan) {
         $fans2[] = $myfan->fromuser()->first();
     }
     return $fans2;
 }
Ejemplo n.º 2
0
 public function NotifyTest()
 {
     if (!Auth::check()) {
         return 'login?';
     }
     $user = Auth::user();
     $Myfans = Fanssystem::FindMyFans($user->id);
     $topic = Topic::findOrFail(6);
     App::make('Phphub\\Notification\\Notifier')->newTopicsNotify($user, $topic);
     return 'ok';
 }