| 123456789101112131415161718192021222324 | 
							- <?php
 
- namespace App\Models;
 
- use Illuminate\Database\Eloquent\Model;
 
- class RecruitTicketField extends Model
 
- {
 
-     protected $table = 'recruit_ticket_field';
 
-     protected $guarded = [];
 
-     public static function ticketFieldData($type)
 
-     {
 
-         $fields = self::where(['type' => $type])->orderBy('listorder','asc')->select(['id', 'field', 'name', 'is_appoint'])->get();
 
-         $field = [];
 
-         foreach ($fields as $item) {
 
-             $field[$item->field] = '变量名:${' . $item->field . '},标题:'.$item->name;
 
-         }
 
-         return $field;
 
-     }
 
- }
 
 
  |