InteReview.php 338 B

123456789101112131415161718
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class InteReview extends Model
  5. {
  6. protected $table='inte_review';
  7. public function user(){
  8. return $this->belongsTo(User::class,'uid');
  9. }
  10. public function get_detail(){
  11. return $this->hasMany(InteDetail::class,'inte_review_id');
  12. }
  13. }