<?php

class Type extends Eloquent
{
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'types';


    /**
     * The rules used for validation.
     *
     * @var array
     */
    public static $rules = [
        'name' => 'required'
    ];

    /**
     * The relationship with table [places].
     */
    public function places()
    {
        return $this->hasMany('Place');
    }


}