SensitiveChapterTransformer.php 401 B

123456789101112131415161718
  1. <?php
  2. namespace App\Http\Controllers\Manage\BadInfo\Transformers;
  3. class SensitiveChapterTransformer
  4. {
  5. public function transform($item)
  6. {
  7. return [
  8. 'bid' => $item->bid,
  9. 'cid' => $item->cid,
  10. 'name' => $item->name,
  11. 'words' => $item->words,
  12. 'sequence' => $item->sequence,
  13. 'content'=>$item->content
  14. ];
  15. }
  16. }