海南旅游SAAS
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.

24 lines
415 B

  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. /**
  5. * 我的频道
  6. * Class UserChannel
  7. * @package App\Models
  8. */
  9. class UserChannel extends BaseModel
  10. {
  11. use HasFactory;
  12. public function getChannelsAttribute($value)
  13. {
  14. return json_decode($value, true);
  15. }
  16. public function setChannelsAttribute($value)
  17. {
  18. return json_encode($value);
  19. }
  20. }