| 1 | <?php |
||
| 10 | class Message extends Model |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'messenger_messages'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = ['thread_id', 'user_id', 'body', 'read_at']; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $touches = ['thread']; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 29 | */ |
||
| 30 | public function thread() |
||
| 34 | |||
| 35 | public function user() |
||
| 39 | } |
||
| 40 |