第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

sqlstate 42s22 列未找到“字段列表”中的 1054 未知列

sqlstate 42s22 列未找到“字段列表”中的 1054 未知列

PHP
達(dá)令說(shuō) 2021-07-06 16:55:57
伙伴們,我收到錯(cuò)誤sqlstate 42s22 columnactivity_post_commentsnot found 1054 unknown column in 'field list'但是這個(gè)列名存在于我的數(shù)據(jù)庫(kù)中。我檢查了我的數(shù)據(jù)庫(kù)并檢查了拼寫(xiě)錯(cuò)誤,但我仍然收到此錯(cuò)誤public function storecomments(Request $request, $id){    // Create Comment    $activity_post = new ActivityPost;    $activity_post->activity_post_comments = $request->input('activity_post_comments');    $activity_post->activity_post_id = $id;    $activity_post->user_id = auth()->user()->id;    $activity_post->save();    return redirect()->back()->with('success', 'Comment Added');}不知道為什么我收到這個(gè)錯(cuò)誤所以我不能在我的數(shù)據(jù)庫(kù)中保存這個(gè)值模型:class ActivityPostComment extends Model{  use SoftDeletes;    // Table Name    protected $table = 'activity_post_comments';    // Primary Key    public $primaryKey = 'id';    // Timestamps    public $timestamps = true;    /**     * The attributes that should be mutated to dates.     *     * @var array     */    protected $dates = ['deleted_at'];    public function post(){        return $this->belongsTo('App\ActivityPost');    }}
查看完整描述

1 回答

?
縹緲止盈

TA貢獻(xiàn)2041條經(jīng)驗(yàn) 獲得超4個(gè)贊

根據(jù)您發(fā)布的上述代碼。你調(diào)用錯(cuò)誤的模型你的模型類名稱是

活動(dòng)帖子評(píng)論

當(dāng)你使用

活動(dòng)貼


查看完整回答
反對(duì) 回復(fù) 2021-07-16
  • 1 回答
  • 0 關(guān)注
  • 400 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)