Message.php 280 B

12345678910111213141516
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Message extends Model
  5. {
  6. public function conversation(){
  7. return $this->belongsTo(Conversation::class);
  8. }
  9. public function user(){
  10. return $this->belongsTo(User::class);
  11. }
  12. }