12345678910111213141516171819202122 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- //use Illuminate\Database\Eloquent\SoftDeletes;
- class Area extends Model{
- // use SoftDeletes;
- protected $table='area';
- public $timestamps = false;
- public function getAreaList($condition){
- return self::query()->where($condition)->get();
- }
- public function getAreaInfo($condition){
- return self::query()->where($condition)->first();
- }
- }
|