src/Routing/Route.php
public function to($destination, array $defaults = [])
    {
        if ($this->name === null) {
            $this->name = strtolower(
                str_replace(['\\', '::'], '_', $destination)
            );
        }

        $this->destination = $destination;
        $this->defaults    = $defaults;
        return $this;
    }
public function to($destination, array $defaults = [])
    {
        if ($this->name === null) {
            $this->name = strtolower(
                str_replace(['\\', '::'], '_', $destination)
            );
        }

        $this->destination = $destination;
        $this->defaults    = $defaults;
        return $this;
    }
public function to ( $ destination , array $ defaults = [ ] ) { if ( $ this -> name === null ) { $ this -> name = strtolower ( str_replace ( [ '\\' , '::' ] , '_' , $ destination ) ) ; } $ this -> destination = $ destination ; $ this -> defaults = $ defaults ; return $ this ; }
Destination class and method of route.

@param string $destination Class and method to route to
@param array  $args        Arguments to pass to the routed method

@example
to('Admin\Settings::index')
Destination class and method of route .