Owl\Repositories\Fluent\StockRepository::getStockById PHP Method

getStockById() public method

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