| Path : /var/www/html/mini-moneyexchange/app/Models/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/mini-moneyexchange/app/Models/MoneyExchangeRate.php |
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
class MoneyExchangeRate extends Model
{
use HasFactory, Notifiable, SoftDeletes;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'money_exchange_list_id',
'exchange_rate',
'user_id'
];
public function user()
{
return $this->belongsTo(User::class);
}
public function moneyExchangeList()
{
return $this->belongsTo(MoneyExchangeList::class,'money_exchange_list_id', 'id');
}
}