48 lines
781 B
PHP
48 lines
781 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class Payment
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id
|
|
* @property int $payable_id
|
|
* @property float $amount
|
|
* @property string $authority
|
|
* @property string $transaction_id
|
|
* @property int $status
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class Payment extends Model
|
|
{
|
|
protected $table = 'payments';
|
|
public static $snakeAttributes = false;
|
|
|
|
protected $casts = [
|
|
'user_id' => 'int',
|
|
'payable_id' => 'int',
|
|
'amount' => 'float',
|
|
'status' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'user_id',
|
|
'payable_id',
|
|
'amount',
|
|
'authority',
|
|
'transaction_id',
|
|
'status'
|
|
];
|
|
}
|