Grant.php 202 B

123456789101112131415
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class Grant extends Model
  5. {
  6. protected $json=['permission'];
  7. public function getPremissionAttr($value)
  8. {
  9. return (array)$value;
  10. }
  11. }