File: /home/mmickelson/spilicensing/app/History.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class History extends Model
{
protected $fillable = ['activityType_id', 'license_id', 'system_id', 'message', 'errorMessage'];
protected $table = 'histories';
public function activityType() {
return $this->belongsTo('App\ActivityType', 'activityType_id');
}
public function license() {
return $this->belongsTo('App\License', 'license_id');
}
public function system() {
return $this->belongsTo('App\System', 'system_id');
}
}