<?php // this Code is Cracked by dharunMods-YouTube-Channel namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Mt4Details extends Model { use HasFactory; public function tuser() { return $this->belongsTo('App\Models\User', 'client_id'); } protected $casts = [ 'start_date' => 'datetime:Y-m-d', 'end_date' => 'datetime:Y-m-d', 'reminded_at' => 'datetime:Y-m-d', ]; // public function getMt4PasswordAttribute($value) // { // return decrypt($value); // } // define a mutator for the mt4_password attribute // public function setMt4passwordAttribute($value) // { // $this->attributes['mt4_password'] = encrypt($value); // } }