27 lines
500 B
PHP
27 lines
500 B
PHP
<?php
|
|
|
|
namespace App\Models\Tenants;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* @mixin IdeHelperPayment
|
|
*/
|
|
class Payment extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $fillable = [
|
|
'subscription_id', 'amount', 'payment_method', 'transaction_id', 'paid_at', 'status', 'memo'
|
|
];
|
|
|
|
protected $dates = [
|
|
'paid_at',
|
|
];
|
|
|
|
public function subscription() {
|
|
return $this->belongsTo(Subscription::class);
|
|
}
|
|
}
|