block-explorer/app/Address.php

45 lines
907 B
PHP
Raw Permalink Normal View History

2021-01-17 21:50:21 +01:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* @property integer $id
* @property string $address
* @property string $first_seen
* @property string $created_at
* @property string $modified_at
* @property float $balance
* @property TransactionAddress[] $transactionAddresses
*/
class Address extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'address';
/**
* The "type" of the auto-incrementing ID.
*
* @var string
*/
protected $keyType = 'integer';
/**
* @var array
*/
protected $fillable = ['address', 'first_seen', 'created_at', 'modified_at', 'balance'];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function transactionAddresses()
{
return $this->hasMany('App\TransactionAddress');
}
}