mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2025-07-23 15:00:45 -04:00
Initial Commit
This commit is contained in:
commit
cc2af611e1
148 changed files with 54234 additions and 0 deletions
24
app/Models/Tip.php
Normal file
24
app/Models/Tip.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Tip extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $appends = ['amount_formatted'];
|
||||
|
||||
public function getAmountFormattedAttribute()
|
||||
{
|
||||
return number_format(($this->amount)*(pow(10, -12)), 8, '.', '');
|
||||
}
|
||||
|
||||
public function address()
|
||||
{
|
||||
return $this->belongsTo(Address::class);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue