$db = DB::connection()->getPdo();
$no = 1;
$format = “000”;
$stmt = $db->prepare(“SELECT [dbo].[GenerateCustomerAccountNumber](:no, :format)”);
$stmt->bindParam(“:no”, $no,PDO::PARAM_INT);
$stmt->bindParam(“:format”, $format,PDO::PARAM_STR);
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_NUM);

Advertisements