ApplyParking.php 473 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. *
  4. *
  5. * @category xxx
  6. * @package PSR
  7. * @subpackage Documentation\API
  8. * @author xxx <xxx@xxx.com>
  9. * @license GPL https://xxx.com
  10. * @link https://xxx.com
  11. * @ctime: 2020/5/13 15:47
  12. */
  13. namespace App\Models;
  14. class ApplyParking extends Model
  15. {
  16. protected $table = 'apply_parkings'; // 申请还车点
  17. protected $guarded = [];
  18. public function users(){
  19. return $this->belongsTo(User::class,'user_id','id');
  20. }
  21. }