src/Base.php
public function Log($logMessage)
    {
        $target = null;

        if ($user = Sentinel::getUser())
            if ($user != null)
                $target = $user->id;

        $log = $this->getLogsRepository()->create(['log' => $logMessage, 'ip' => Request::ip(), 'target' => $target]);
    }
public function Log($logMessage)
    {
        $target = null;

        if ($user = Sentinel::getUser())
            if ($user != null)
                $target = $user->id;

        $log = $this->getLogsRepository()->create(['log' => $logMessage, 'ip' => Request::ip(), 'target' => $target]);
    }
public function Log ( $ logMessage ) { $ target = null ; if ( $ user = Sentinel :: getUser ( ) ) if ( $ user != null ) $ target = $ user -> id ; $ log = $ this -> getLogsRepository ( ) -> create ( [ 'log' => $ logMessage , 'ip' => Request :: ip ( ) , 'target' => $ target ] ) ; }
Create a log

@param $logMessage
Create a log