<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Transaction extends Model { public function user() { return $this->belongsTo('App\Models\User')->withDefault(function ($data) { foreach($data->getFillable() as $dt){ $data[$dt] = __('Deleted'); } }); } }