Nav apraksta

CustomerVip.php 447B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shensong
  5. * Date: 2019/11/27
  6. * Time: 17:06
  7. */
  8. namespace App;
  9. use Illuminate\Database\Eloquent\Model;
  10. class CustomerVip extends Model
  11. {
  12. public $timestamps = false;
  13. protected $table = 'customer_vip';
  14. public static function getCustomerInformation($phone) {
  15. $self = new self();
  16. $info = $self->where('phone',$phone)->where('is_del',0)->first();
  17. return $info;
  18. }
  19. }