function auth($k = '') { $user = \Boofw\Phpole\App\Auth::user(); if ($k) { return array_get($user, $k); } return $user; }