UserCert.php 418 B

123456789101112131415161718
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class UserCert extends Model
  5. {
  6. const UPDATED_AT = null;
  7. protected $table='user_cert';
  8. protected $fillable = ['user_id',
  9. 'recom_id','agent_id','recom_audit',
  10. 'recom_audit_desc','agent_audit','agent_audit_desc'];
  11. public function user()
  12. {
  13. return $this->belongsTo('App\Models\User','user_id','id');
  14. }
  15. }