orbit icon indicating copy to clipboard operation
orbit copied to clipboard

help

Open rasul-chopurov opened this issue 1 year ago • 1 comments

SQLSTATE[HY000]: General error: 1 table stars has no column named content INSERT INTO "stars" ( "content", "course_id", "created_at", "id", "ip", "updated_at" )

    $existingStar = \App\Models\Star::where('ip', request()->ip())->where('course_id', $course)->first();

    if ($existingStar === null) {
        \App\Models\Star::create([
            'ip' => request()->ip(),
            'course_id' => $course,
        ]);
        $this->resetPage();
    } else {
        $this->resetPage();
    }

rasul-chopurov avatar Apr 06 '24 16:04 rasul-chopurov

Please share model information. Your code does not help me debug the issue at all.

ryangjchandler avatar Apr 06 '24 20:04 ryangjchandler