for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Eddy <[email protected]>
*/
namespace App\Model\Admin;
class Comment extends Model
{
const STATUS_ENABLE = 1;
const STATUS_DISABLE = 0;
const ADMIN_YES = 1;
const ADMIN_NO = 0;
protected $guarded = [];
public function user()
return $this->belongsTo('App\Model\Admin\User', 'user_id');
}
public function replyUser()
return $this->belongsTo('App\Model\Admin\User', 'reply_user_id');
public function entity()
return $this->belongsTo('App\Model\Admin\Entity', 'entity_id');