Config.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace App\Models;
  3. use DateTimeInterface;
  4. use Illuminate\Database\Eloquent\Model;
  5. /**
  6. * 系统配置表
  7. *
  8. * @property int $id 系统配置表
  9. * @property string $key 配置名称
  10. * @property string $msg 配置说明
  11. * @property string $value 配置值
  12. * @property \Illuminate\Support\Carbon|null $created_at
  13. * @property \Illuminate\Support\Carbon|null $updated_at
  14. * @method static \Illuminate\Database\Eloquent\Builder|Config newModelQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|Config newQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|Config query()
  17. * @method static \Illuminate\Database\Eloquent\Builder|Config whereCreatedAt($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|Config whereId($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|Config whereKey($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|Config whereMsg($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|Config whereUpdatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|Config whereValue($value)
  23. * @mixin \Eloquent
  24. */
  25. class Config extends Model
  26. {
  27. /**
  28. * The table associated with the model.
  29. *
  30. * @var string
  31. */
  32. protected $table = 'configs';
  33. /**
  34. * The primary key associated with the table.
  35. *
  36. * @var string
  37. */
  38. protected $primaryKey = 'id';
  39. /**
  40. * Indicates if the model should be timestamped.
  41. *
  42. * @var bool
  43. */
  44. public $timestamps = true;
  45. /**
  46. * 不能被批量赋值的属性
  47. *
  48. * @var array
  49. */
  50. protected $guarded = ['id', 'updated_at', 'created_at'];
  51. }