How to do this in laravel, when you create a category had a choice mnogoserijnaya or odnostishiya category?

Good afternoon.
I have the usual crud categories with custom fields, but I need to add when creating the category choices in this category to accommodate only one news or much news. You need the category table to add another field, it's understandable. Don't quite understand how to implement the logic in the same controller and how to build queries.
March 19th 20 at 08:29
1 answer
March 19th 20 at 08:31
Personally, I do not understand another - why is that ever going to need)))

And so the doing in the models box multi

Writing to it 0 or 1

Sample do with where('multi',1), for example

If I correctly understood the task)))

It would be better to explain what you want to get in the end
What I wrote unclear? You need to make when creating a choice how to place articles in this category and accordingly when creating articles and pointing categories were placed only one article in a category, if you have to choose one article and many articles, if there is a choice a lot of articles in the category. So clearly written? - travon.Kirlin37 commented on March 19th 20 at 08:34

Find more questions by tags Laravel