Answer the question
In order to leave comments, you need to log in
How to create a table for just one record in Laravel?
Hello!
How to create a table for just one record in Laravel?
I created the everythings table, it has the fields id, title, url, key, created_at, updated_at, this table will always use only one record.
And now, when requesting data, it is necessary to take data every time through Everything::find(1), how correct is this?
Or better, if a whole table is used for one record, use separate rows for each data, for example:
id set_key set_value
1 title Test
2 url https://test.com
3 key 89237rwfohsj
Answer the question
In order to leave comments, you need to log in
And now, when requesting data, it is necessary to take data every time through Everything::find(1), how correct is this?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question