src/Schema/Grammars/MySqlGrammar.php
private function validateEvent(Blueprint $blueprint)
    {
        if (! in_array(strtolower($blueprint->event), $this->events)) {
            throw new InvalidArgumentException("Cannot use {$blueprint->event} as trigger event.");
        }

        return $blueprint->event;
    }
private function validateEvent(Blueprint $blueprint)
    {
        if (! in_array(strtolower($blueprint->event), $this->events)) {
            throw new InvalidArgumentException("Cannot use {$blueprint->event} as trigger event.");
        }

        return $blueprint->event;
    }
private function validateEvent ( Blueprint $ blueprint ) { if ( ! in_array ( strtolower ( $ blueprint -> event ) , $ this -> events ) ) { throw new InvalidArgumentException ( "Cannot use {$blueprint->event} as trigger event." ) ; } return $ blueprint -> event ; }
Validate event.

@param string $event
@return string
Validate event .