JournalComment.php 379 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class JournalComment extends Model
  5. {
  6. protected $table = "journal_comments";
  7. protected $guarded=['id'];
  8. function jounal()
  9. {
  10. return $this->belongsTo('App\Models\Jounal','jounal_id');
  11. }
  12. function user()
  13. {
  14. return $this->belongsTo('App\User','approaved_by');
  15. }
  16. }