2016-03-05 00:18:10 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
2016-02-29 15:59:36 +00:00
|
|
|
|
2016-09-06 20:39:27 +00:00
|
|
|
/*
|
|
|
|
|
Attendize.com - Event Management & Ticketing
|
|
|
|
|
*/
|
2016-02-29 15:59:36 +00:00
|
|
|
|
|
|
|
|
/**
|
2016-03-05 00:18:10 +00:00
|
|
|
* Description of Currency.
|
2016-02-29 15:59:36 +00:00
|
|
|
*
|
|
|
|
|
* @author Dave
|
|
|
|
|
*/
|
2016-03-05 00:18:10 +00:00
|
|
|
class Currency extends \Illuminate\Database\Eloquent\Model
|
|
|
|
|
{
|
2016-03-14 16:37:38 +00:00
|
|
|
/**
|
|
|
|
|
* Indicates whether the model should be timestamped.
|
|
|
|
|
*
|
|
|
|
|
* @var bool $timestamps
|
|
|
|
|
*/
|
2016-03-05 00:18:10 +00:00
|
|
|
public $timestamps = false;
|
2016-09-06 20:39:27 +00:00
|
|
|
/**
|
|
|
|
|
* The database table used by the model.
|
|
|
|
|
*
|
|
|
|
|
* @var string $table
|
|
|
|
|
*/
|
|
|
|
|
protected $table = 'currencies';
|
2016-03-14 16:37:38 +00:00
|
|
|
/**
|
|
|
|
|
* Indicates whether the model should use soft deletes.
|
|
|
|
|
*
|
|
|
|
|
* @var bool $softDelete
|
|
|
|
|
*/
|
|
|
|
|
protected $softDelete = false;
|
2016-02-29 15:59:36 +00:00
|
|
|
|
2016-03-14 16:37:38 +00:00
|
|
|
/**
|
|
|
|
|
* The event associated with the currency.
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
|
*/
|
2016-03-05 00:18:10 +00:00
|
|
|
public function event()
|
|
|
|
|
{
|
2016-10-07 22:48:54 +00:00
|
|
|
return $this->belongsTo(\App\Models\Event::class);
|
2016-03-05 00:18:10 +00:00
|
|
|
}
|
2016-02-29 15:59:36 +00:00
|
|
|
}
|