Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worked on the faq page #106

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

victor-ok
Copy link
Collaborator

@raoularavel
Copy link
Collaborator

Hello Victor,
Thank you for your PR.
Just one thing. The way you create model/controller with FAQ. It is working.
Another approach is to have just One controller for the FAQ. And two tables. If we have three faq category, you will create another table for that. But if you have two tables like this:
faq { id, title, created_by } and faq_qa { id, faq_id, question, answer }
It will be very easy to have many faq category with many questions/answers instead of having one table for one faq category.
Also in the Faq controller you can implement all methods that you need instead of having many controller for each faq category.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants