Subscription Required

برای مشاهده این درس نیاز به خرید اشتراک دارید.

با خرید اشتراک به قابلیت نمایش آنلاین و دانلود بیش از 1500 جلسه آموزشی منتشر شده در وبسایت Laracasts دسترسی خواهید داشت.

درس قبلی
How Do I Dry Up My Forms

How Do I Dry Up My Forms

How Do I Dry Up My Forms

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

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

A common gotcha for beginners revolves around re-using forms. It doesn't feel quite right to copy and paste your model's "create" form into the "edit" page, but you're not sure of any other way. For the "edit" form, a couple of things must be different: the submit button should have unique text, and each input should display the old value from the session or the saved value in the database. So how exactly do we allow for this, without breaking the "create" page? View the source for this lesson on GitHub. Thanks so much to Mason for the question. If the rest of you have any questions that could be answered in video-form, tweet your question and add the hash tag, #helpMeLaracasts.
دیدگاه های کاربران

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