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

26 lines
452 B

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