---
title: "Discussion on \"Laravel Tricks: Store money value as a integer using \"Laravel Cast\" method.\" | Hashnode"
description: "Discussion on \"Laravel Tricks: Store money value as a integer using \"Laravel Cast\" method.\". I was working on a Laravel project where I was storing money values as integers in the database. I am not using any decimal type for the table, just a simple integer. This is how I have done it.\nTo begin with, let's see an example: I am storing a pro..."
url: "https://hashnode.com/posts/laravel-tricks-store-money-value-as-a-integer-using-laravel-cast-method/64e0deac89ee6f9b84c7a60e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Laravel Tricks: Store money value as a integer using "Laravel Cast" method.](https://blog.debjit.in/laravel-tricks-store-money-value-as-a-integer-using-laravel-cast-method?utm_source=hashnode&utm_medium=feed)

I was working on a Laravel project where I was storing money values as integers in the database. I am not using any decimal type for the table, just a simple integer. This is how I have done it. To begin with, let's see an example: I am storing a pro...

Aug 19, 2023 · 2 min read · blog.debjit.in  
Updated Aug 23, 2023  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#php](https://hashnode.com/tag/php)
-   [#databases](https://hashnode.com/tag/databases)
-   [#mysql](https://hashnode.com/tag/mysql)

## Written by

[Debjit Biswas](https://hashnode.com/@debjit)

@debjit · West Bengal, India

  
[View profile](https://hashnode.com/@debjit)

Full Stack Web Developer

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
