Fail.php 333 B

123456789101112131415161718
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Fail extends Model
  5. {
  6. protected $table='fail';
  7. public function get_user(){
  8. return $this->hasOne(User::class,'id','uid');
  9. }
  10. public function get_inte_detail(){
  11. return $this->hasMany(InteDetail::class,'inte_fail_id');
  12. }
  13. }