I
I
ismuhanovv2017-10-29 19:14:43
Database design
ismuhanovv, 2017-10-29 19:14:43

How to add required to a form?

{!! Former::tel('phone_number', null)
                                           ->placeholder('8 7xx xxx xxxx')
                                           ->value($orderData['phone'])
                                           ->addClass('tel--control phone-mask')
                                           ->label(__('messages.Телефон'))
                                           ->tabindex(2)
                                         !!}

How to add required to a field and change the input system? I'm working with a finished project and still can't figure it out.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
orbit070, 2019-08-01
@LaraLover

Table Post type rating (post_id, user_id).
Table Rating of comments of the type (comment_id, user_id).
Table of comments of the form (post_id, comment_id).
In order not to count the rating from zero for each request, an elementary thing is done: in the Posts table, create an additional Rating field. And every time someone puts a plus (or minus), in addition to adding (or deleting) an entry to the Post Rating table, you also increase (or decrease) the Rating field in the Posts table. Similarly, start the same Rating field in the comments table and for each plus / minus comment, in addition to adding it to the Comments Rating table, increase (decrease) the rating counter-field in the Comments table itself

A
Alexander Pushkarev, 2017-10-29
@ismuhanovv

Former::tel('phone_number', null, ['required'])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question