12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * App\Models\ArticleModel
- *
- * @property int $id
- * @property string $title
- * @property string $tag
- * @property string $cover 封面图
- * @property string $link 文章链接
- * @property int $showed_at
- * @property int|null $deleted_at
- * @property \Illuminate\Support\Carbon $created_at
- * @property \Illuminate\Support\Carbon $updated_at
- * @method static bool|null forceDelete()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel newQuery()
- * @method static \Illuminate\Database\Query\Builder|\App\Models\ArticleModel onlyTrashed()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel query()
- * @method static bool|null restore()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereCover($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereDeletedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereLink($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereShowedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereTag($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereTitle($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArticleModel whereUpdatedAt($value)
- * @method static \Illuminate\Database\Query\Builder|\App\Models\ArticleModel withTrashed()
- * @method static \Illuminate\Database\Query\Builder|\App\Models\ArticleModel withoutTrashed()
- * @mixin \Eloquent
- */
- class ArticleModel extends Model
- {
- use SoftDeletes;
- protected $table = 'kdgx_fpdx_articles';
- protected $dateFormat = 'U';
- protected $fillable = ['title', 'tag', 'cover', 'link', 'showed_at', 'deleted_at'];
- }
|