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
19 lines
343 B
<?php
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class LanzuArea extends Model
|
|
{
|
|
protected $table = 'lanzu_area';
|
|
protected $dateFormat = 'U';
|
|
|
|
public static function getArea($pid=0)
|
|
{
|
|
$data = self::where('pid',$pid)->select('id','name as text')->get()->toArray();
|
|
return $data;
|
|
}
|
|
}
|