<?php
class Yazilar extends Eloquent {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'gs_yazi';
public function uye(){
return $this->hasOne('Uyeler','uniq_id', 'yazar_uniq');
}
public function uyeler(){
return $this->hasMany('Yazilar','uniq_id', 'yazar_uniq');
}
}