Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
WIKIPEDIA
/
imalipartnersapi
/
app
/
Imali
:
Transfer.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace App\Imali; use App\Bank\HistoryPayment; use App\Bank\Profit; use App\User; use Illuminate\Database\Eloquent\Model; use DateTimeInterface; class Transfer extends Model { protected $fillable = [ 'transaction_id', 'amount', 'description', 'comissao', 'amount_debited', 'sender_id', 'reciever_id', 'estado', 'estado_color', 'reciever_name', 'reciever_account', ]; function user() { return $this->belongsTo(User::class); } function profit() { return $this->belongsTo(Profit::class); } function paymentHistoric() { return $this->hasMany(HistoryPayment::class); } protected function serializeDate(DateTimeInterface $date) { return $date->format('d-m-Y H:i:s'); } }