Owl\Repositories\Fluent\StockRepository::getStockById PHP 메소드

getStockById() 공개 메소드

Get a stock by id.
public getStockById ( $id ) : stdClass
$id int
리턴 stdClass
    public function getStockById($id)
    {
        return \DB::table($this->getTableName())->where($this->getTableName() . '.id', $id)->first();
    }