链街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.

31 lines
617 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Database\Eloquent\SoftDeletes;
  6. class LanzuMpInfo extends Model
  7. {
  8. use HasDateTimeFormatter;
  9. use SoftDeletes;
  10. protected $table = 'lanzu_mp_info';
  11. protected $dateFormat = 'U';
  12. /**
  13. * @return array
  14. */
  15. public static function selectCsInfo()
  16. {
  17. $rows = self::get();
  18. $item = [];
  19. if ($rows){
  20. foreach ($rows as $row){
  21. $item[$row->admin_user_id] = $row->name;
  22. }
  23. }
  24. return $item;
  25. }
  26. }