Flood.php
public function register($name, $window = 3600, $identifier = null)
    {
        $this
            ->connection
            ->insert($this->tableName, [
                'event'      => $name,
                'identifier' => $identifier ?: $this->ip(),
                'timestamp'  => time(),
                'expiration' => time() + $window,
            ]);
    }
public function register($name, $window = 3600, $identifier = null)
    {
        $this
            ->connection
            ->insert($this->tableName, [
                'event'      => $name,
                'identifier' => $identifier ?: $this->ip(),
                'timestamp'  => time(),
                'expiration' => time() + $window,
            ]);
    }
public function register ( $ name , $ window = 3600 , $ identifier = null ) { $ this -> connection -> insert ( $ this -> tableName , [ 'event' => $ name , 'identifier' => $ identifier ? : $ this -> ip ( ) , 'timestamp' => time ( ) , 'expiration' => time ( ) + $ window , ] ) ; }
Registers an event for the current visitor to the flood control mechanism.

@param string $name       The name of an event.
@param int    $window     Time to live in seconds.
@param int    $identifier Optional identifier (defaults to the current user's IP address).
Registers an event for the current visitor to the flood control mechanism .