simonhamp / laravel-nova-csv-import

The best CSV import component for Laravel Nova
https://novapackages.com/packages/simonhamp/laravel-nova-csv-import
MIT License
166 stars 76 forks source link

Create (and run?) migrations directly from uploaded files #56

Open simonhamp opened 1 year ago

simonhamp commented 1 year ago

If an uploaded file is intended for a table that doesn't yet exist, it might be quite nice to have an explorative way of creating the table structure, where you define it based on the data.

If we could then write the migration script, we could present this back to the user, which they could then incorporate into the application manually.

Taking it further, the tool could even create the migration file and potentially even run the migration, so that the user journey of importing data stays completely within the Nova UI.

This should probably be disabled in production environments.