16 lines
271 B
PHP
16 lines
271 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Payment extends Model
|
|
{
|
|
protected $table = 'ab_payment';
|
|
protected $dates = ['date_payment'];
|
|
|
|
public function getPaymentDateAttribute()
|
|
{
|
|
return $this->date_payment->format('Y-m-d');
|
|
}
|
|
} |