ApplyParking.php 513 B

1234567891011121314151617181920212223242526272829
  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. use Illuminate\Database\Eloquent\Model;
  15. class ApplyParking extends Model
  16. {
  17. protected $table = 'apply_parkings'; // 申请还车点
  18. protected $guarded = [];
  19. public function users(){
  20. return $this->belongsTo(User::class,'user_id','id');
  21. }
  22. }