We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d3c13 commit 2f9751cCopy full SHA for 2f9751c
src/OwenIt/Auditing/Auditing.php
@@ -247,14 +247,10 @@ public function audit(array $log)
247
*
248
* @return null
249
*/
250
- private function getUserId()
+ protected function getUserId()
251
{
252
try {
253
- if (class_exists($class = '\Cartalyst\Sentry\Facades\Laravel\Sentry')
254
- || class_exists($class = '\Cartalyst\Sentinel\Laravel\Facades\Sentinel')
255
- ) {
256
- return ($class::check()) ? $class::getUser()->id : null;
257
- } elseif (\Auth::check()) {
+ } if (\Auth::check()) {
258
return \Auth::user()->getAuthIdentifier();
259
}
260
} catch (\Exception $e) {
0 commit comments