for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Log extends Model
{
/**
* @var string
*/
protected $table = 'logs';
protected $primaryKey = 'id';
* @var bool
public $timestamps = true;
* @var array
protected $dates = [
'created_at',
'updated_at'
];
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
public function thread() {
return $this->belongsTo('App\Thread', 'thread_id');
}
public function article() {
return $this->belongsTo('App\Articles', 'article_id');
public function admin() {
return $this->belongsTo('App\Admin', 'admin_id');
public function doctor() {
return $this->belongsTo('App\Doctor', 'doctor_id');
public function member() {
return $this->belongsTo('App\User', 'user_id');