Setting.php 305 B

12345678910111213141516171819
  1. <?php
  2. namespace App;
  3. /**
  4. * @property int $key
  5. * @property int $value
  6. */
  7. class Setting extends Model {
  8. protected static $table = "setting";
  9. protected static $idField = "key";
  10. protected static $fillableFields = ["key", "value"];
  11. public function getValue(): ?string {
  12. return $this->value;
  13. }
  14. }