Dingo\Api\Dispatcher::on PHP Method

on() public method

Sets the domain to be used for the request.
public on ( string $domain ) : Dispatcher
$domain string
return Dispatcher
    public function on($domain)
    {
        $this->domain = $domain;
        return $this;
    }

Usage Example

 /**
  * Sets the domain to be used for the request.
  *
  * @param string $domain
  * @return \Dingo\Api\Dispatcher 
  * @static 
  */
 public static function on($domain)
 {
     return \Dingo\Api\Dispatcher::on($domain);
 }