<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Marker extends Model
{

    public function photos()
    {
      return $this->hasMany('App\Photo');
    }

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'latitude', 'longitude', 'type', 'title', 'description', 'bibliography'
    ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = ['created_at', 'updated_at'];
}
