درس قبلی
Attach and Validate Many-to-Many Inserts

Attach and Validate Many-to-Many Inserts

Attach and Validate Many-to-Many Inserts

قسمت 33
درس بعدی

درباره این درس

We now understand how to fetch and display records from a linking table. Let's next learn how to perform inserts. We can leverage the attach() and detach() methods to insert one or many records at once. However, we should also perform the necessary validation to ensure that a malicious user doesn't sneak an invalid id.
دیدگاه های کاربران

× در حال پاسخ به: