Photo.php 235 Bytes
<?php

use Jenssegers\Mongodb\Model as Eloquent;

class Photo extends Eloquent {

	protected $collection = 'photos';
	protected static $unguarded = true;

    public function imageable()
    {
        return $this->morphTo();
    }

}