grosv / laravelizer

Create Laravel models, factories, and migrations from an existing MySQL database.
11 stars 0 forks source link

Advanced Options #7

Open edgrosvenor opened 4 years ago

edgrosvenor commented 4 years ago

--created_at= Provide the name of the column you want mapped to created_at

--updated_at= Provide the name of the column you want mapped to updated_at

--add_timestamps Add a table modification to the migration to create timestamps in the table separate from the table creation (which is wrapped to only run when the table doesn't exist) if those fields don't already exist in the table.

--add_deletes Add soft deletes to the model and migration if it doesn't already exist int he table.

Anything else?

edgrosvenor commented 4 years ago

I think I've mostly spiked these into the code already.