for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Alive2212\LaravelMessageService;
use Illuminate\Database\Eloquent\Model;
class AliveMessageProcess extends Model
{
protected $fillable = [
'type',
'scope',
'from',
'to',
'body',
'invisible',
'event_id',
];
public function messageEvent()
return $this->belongsTo(AliveMessageEvent::class);
}
public function messages()
return $this->hasMany(AliveMessageEvent::class, 'process_id');