<?php namespace App;

use Illuminate\Database\Eloquent\Model;

class Currency extends Model {
	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'currency';

	/**
	 * The attributes that are mass assignable.
	 *
	 * @var array
	 */
	protected $fillable = ['name'];	

	protected function getAllCurrency()
	{
		$result = $this->select('id', 'name')->orderBy('name')->get();
		return $result;
	}
}