| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?phpnamespace App\Models;use Illuminate\Database\Eloquent\Model;use Illuminate\Database\Eloquent\SoftDeletes;/** * App\Models\NoticeCategory * * @property int $id * @property string $category_name 公告分类 * @property int $listorder 排序 * @property int $admin_set 是否系统:0否1是 * @property int $status 0禁用1正常 * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property string|null $deleted_at * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Notice[] $notices * @method static bool|null forceDelete() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory newQuery() * @method static \Illuminate\Database\Query\Builder|\App\Models\NoticeCategory onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory query() * @method static bool|null restore() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory whereAdminSet($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory whereCategoryName($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory whereListorder($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\NoticeCategory whereUpdatedAt($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\NoticeCategory withTrashed() * @method static \Illuminate\Database\Query\Builder|\App\Models\NoticeCategory withoutTrashed() * @mixin \Eloquent */class NoticeCategory extends Model{    use SoftDeletes;    protected $table = 'notice_categorys';    public function notices()    {        return $this->hasMany(Notice::class,'type_id');    }}
 |