2 years ago

Adding 0.000005 to 0.000005?

Posted 2 years ago by 13en

I've tried mostly everything basically i just want to add the values 0.000005 and 0.000005 together increasing every time a form is submitted. So for example 0.000005 / 0.000010 / 0.000015 and so on but i don't absolutely no idea how to get this to work.

Table 1 cost contains the value to start the sum from

    Schema::create('monsters', function (Blueprint $table) {

and heres the code for the increase of the value

Monster::where(['id'=>$monster_id])->increment('cost', +0.000005);

If anyone could point me in the right direction it would be much appreciated, i've tried nearly every table type known to man, downloaded packages, and still can't solve this.

Please sign in or create an account to participate in this conversation.