Current File : /home/tradevaly/ladybagcollection.com/project/app/Models/SocialProvider.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SocialProvider extends Model
{
    protected $fillable = ['provider_id','provider'];


    function user()
    {
        return $this->belongsTo(User::class)->withDefault(function ($data) {
            foreach($data->getFillable() as $dt){
                $data[$dt] = __('Deleted');
            }
        });
    }
}