Answer the question
In order to leave comments, you need to log in
How to remove timestamps from laravel factory?
Good day.
Essence such: I do filling of the table with the test data. How to make it so that when writing to the database, the created_at and updated_at fields are not required?
Well, or how to display this table without these fields?
Answer the question
In order to leave comments, you need to log in
As an option:
set public $timestamps = false in the model and remove $timestamps in the migration controller. Then, when generating records, they will not be required.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question