Setting.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Models;
  3. use App\Base\BaseModel;
  4. /**
  5. * App\Models\Setting
  6. *
  7. * @property int $id
  8. * @property string $type
  9. * @property string $key
  10. * @property array $value
  11. * @property \Illuminate\Support\Carbon|null $created_at
  12. * @property \Illuminate\Support\Carbon|null $updated_at
  13. * @method static \Illuminate\Database\Eloquent\Builder|Setting newModelQuery()
  14. * @method static \Illuminate\Database\Eloquent\Builder|Setting newQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|Setting query()
  16. * @method static \Illuminate\Database\Eloquent\Builder|Setting whereCreatedAt($value)
  17. * @method static \Illuminate\Database\Eloquent\Builder|Setting whereId($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|Setting whereKey($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|Setting whereType($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|Setting whereUpdatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|Setting whereValue($value)
  22. * @mixin \Eloquent
  23. */
  24. class Setting extends BaseModel
  25. {
  26. const TYPE_BANNER = 'banner';
  27. const TYPE_CUSTOM = 'custom';
  28. const TYPE_HOT_KEYWORD = "hot_keyword";
  29. protected $table = "setting";
  30. protected $casts = [
  31. "value" => "array",
  32. ];
  33. }