leivingson / autodb
This package helps you creating models from your database connection in laravel.
1.0.0
2024-03-28 00:50 UTC
This package is auto-updated.
Last update: 2025-08-20 03:52:01 UTC
README
MySQL AutoDB
An automatic migrations and models generator for MySQL database
The AutoDB is a tool that generates a database model from a given connection in .env file. The tool is designed to be used in the context of huges amount of data when migrating for Laravel or automatize a repetitive task. The project takes the dataset from the database and generates the migrations and models with the attributes and cast the fields in models for each column. The code uses Levenshtein Algorithm to translate MySQL types to Eloquent types.
Installation
composer require leivingson/autodb
Usage
php artisan autodb:generate