UserCert.php 292 B

123456789101112131415161718
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Models\User;
  5. class UserCert extends Model{
  6. protected $table = 'user_cert';
  7. public $timestamps=true;
  8. public function user_info()
  9. {
  10. return $this->belongsTo(User::class,'user_id');
  11. }
  12. }