Fillable ทรัพย์สินเพื่ออนุญาตให้เกิดข้อผิดพลาด

รหัสตัวอย่าง

0
0

fillable ทรัพย์สินเพื่ออนุญาตให้เกิดข้อผิดพลาด

//for comment Section

//commentController.php
    public function store(StoreCommentRequest $request)
    {
        //
        $comment = Comment::create([
            "message"=>$request->message,
            "post_id"=>$request->post_id,
            "user_id"=>Auth::id(),
        ]);
        return redirect()->to(url()->previous()."#comment-create");    
    }

//Comment.php <= model

    class Comment extends Model
    {
    use HasFactory;

    protected $fillable =["message","user_id","post_id"];
    }

หน้าคล้ายกัน

คล้ายกันหน้ากับตัวอย่าง

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................

ดังอยู่ในนี้หมวดหมู่

ดังหน้ากับตัวอย่างอยู่ในหมวดหมู่