public function beforeFilter() { $ctl = $this; $auth = $ctl->Auth; $session = $ctl->Session; $request = $ctl->request; LogUtil::init($session, $auth, time(), env('REMOTE_ADDR')); LogUtil::writeUserAccess($request); return parent::beforeFilter(); }