Client.php 323 Bytes
Newer Older
unknown's avatar
unknown committed
1
<?php
2

unknown's avatar
unknown committed
3 4 5 6 7 8
use Jenssegers\Mongodb\Model as Eloquent;

class Client extends Eloquent {

	protected $collection = 'clients';
	protected static $unguarded = true;
9

unknown's avatar
unknown committed
10 11 12 13
	public function users()
	{
		return $this->belongsToMany('User');
	}
Jens Segers's avatar
Jens Segers committed
14 15 16 17 18

	public function photos()
    {
        return $this->morphMany('Photo', 'imageable');
    }
19
}