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