A
A
ABCquestion2022-04-06 12:35:27
Laravel
ABCquestion, 2022-04-06 12:35:27

What type of field should be specified in order to create a selection list in the database from 2 values ​​for the field?

It is necessary in the Catalog - add the "view" attribute (view_type) to it - one of the values ​​['blocks', 'list']
, that is, for the catalog in the future we will indicate "blocks" or "list" and thus the goods inside will be displayed it. Keep in mind that the directory can be updated or set the type when creating. The default value is blocks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question