public function parse($name)
    {
        $segments = array_reverse(explode('_', $name));

        if ($segments[0] == 'table') {
            array_shift($segments);
        }

        return [
            'action' => $this->getAction($segments),
            'table' => $this->getTableName($segments)
        ];
    }
public function parse($name)
    {
        $segments = array_reverse(explode('_', $name));

        if ($segments[0] == 'table') {
            array_shift($segments);
        }

        return [
            'action' => $this->getAction($segments),
            'table' => $this->getTableName($segments)
        ];
    }
public function parse ( $ name ) { $ segments = array_reverse ( explode ( '_' , $ name ) ) ; if ( $ segments [ 0 ] == 'table' ) { array_shift ( $ segments ) ; } return [ 'action' => $ this -> getAction ( $ segments ) , 'table' => $ this -> getTableName ( $ segments ) ] ; }
Parse the migration name into something we can use.

@param  string $name
@return array
Parse the migration name into something we can use .