ArticleModel.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * App\Models\ArticleModel
  7. *
  8. * @property int $id
  9. * @property string $title
  10. * @property string $tag
  11. * @property string $cover 封面图
  12. * @property string $link 文章链接
  13. * @property int $showed_at
  14. * @property int|null $deleted_at
  15. * @property \Illuminate\Support\Carbon $created_at
  16. * @property \Illuminate\Support\Carbon $updated_at
  17. * @method static bool|null forceDelete()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel newModelQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel newQuery()
  20. * @method static \Illuminate\Database\Query\Builder|\App\Models\ArticleModel onlyTrashed()
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel query()
  22. * @method static bool|null restore()
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereCover($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereCreatedAt($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereDeletedAt($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereId($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereLink($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereShowedAt($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereTag($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereTitle($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereUpdatedAt($value)
  32. * @method static \Illuminate\Database\Query\Builder|\App\Models\ArticleModel withTrashed()
  33. * @method static \Illuminate\Database\Query\Builder|\App\Models\ArticleModel withoutTrashed()
  34. * @mixin \Eloquent
  35. */
  36. class ArticleModel extends Model
  37. {
  38. use SoftDeletes;
  39. protected $table = 'kdgx_fpdx_articles';
  40. protected $dateFormat = 'U';
  41. protected $fillable = ['title', 'tag', 'cover', 'link', 'showed_at', 'deleted_at'];
  42. }