コード例 #1
0
 public static function header()
 {
     if (\Auth::guest()) {
         $count = null;
     } else {
         $count = FollowController::getCounter(\Auth::user()->name);
     }
     return $count;
 }
コード例 #2
0
 public static function userData($name)
 {
     $data = FollowController::getCounter($name);
     $data['name'] = $name;
     $data['isFollow'] = FollowController::isFollow($name);
     return $data;
 }