48 lines
939 B
PHP
48 lines
939 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Backpack\CRUD\app\Models\Traits\CrudTrait;
|
|
|
|
/*
|
|
Attendize.com - Event Management & Ticketing
|
|
*/
|
|
|
|
/**
|
|
* Description of Currency.
|
|
*
|
|
* @author Dave
|
|
*/
|
|
class Currency extends \Illuminate\Database\Eloquent\Model
|
|
{
|
|
use CrudTrait;
|
|
/**
|
|
* Indicates whether the model should be timestamped.
|
|
*
|
|
* @var bool $timestamps
|
|
*/
|
|
public $timestamps = false;
|
|
/**
|
|
* The database table used by the model.
|
|
*
|
|
* @var string $table
|
|
*/
|
|
protected $table = 'currencies';
|
|
/**
|
|
* Indicates whether the model should use soft deletes.
|
|
*
|
|
* @var bool $softDelete
|
|
*/
|
|
protected $softDelete = false;
|
|
|
|
/**
|
|
* The event associated with the currency.
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function event()
|
|
{
|
|
return $this->belongsTo(\App\Models\Event::class);
|
|
}
|
|
}
|