blink\http\Response::with PHP 메소드

with() 공개 메소드

public with ( $data )
    public function with($data)
    {
        $this->data = $data;
        return $this;
    }

Usage Example

예제 #1
0
 public function compute($a, $b, Response $response)
 {
     $response->with($a * $b);
     return $response;
 }