链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
343 B

  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class LanzuArea extends Model
  5. {
  6. protected $table = 'lanzu_area';
  7. protected $dateFormat = 'U';
  8. public static function getArea($pid=0)
  9. {
  10. $data = self::where('pid',$pid)->select('id','name as text')->get()->toArray();
  11. return $data;
  12. }
  13. }