1234567891011121314151617181920212223 |
- <?php
-
- namespace App\Model\Raharja;
-
- use Illuminate\Database\Eloquent\Model;
-
- class UserReceive extends Model
- {
-
-
- protected $table = 'user_receive';
- protected $fillable = [
- 'message_id',
- 'user_id',
- 'is_check',
- ];
-
- public function getMessage(){
- return $this->belongsTo(Message::class, 'message_id', 'id');
- }
-
-
- }
|