Laravel Migration Diagram and MySQL Converter
Two tabs: the first turns migration files into an ER diagram with Mermaid export and schema warnings, the second turns a MySQL CREATE TABLE dump into migration code.
🔒 All conversion runs inside your browser. Your code is never sent to a server.
The commands the tool understands
id, string, text, integer, bigInteger, boolean, date, dateTime, timestamp, decimal, float, json, enum, foreignId, foreignIdFor, foreign, morphs, nullableMorphs, timestamps, softDeletes, rememberToken. Relationships are inferred from foreignId('user_id')->constrained() or ->constrained('users') or foreignIdFor(User::class).
The limits of the converter
The converter understands the common types: varchar, char, text, mediumtext, longtext, int, bigint, smallint, tinyint, boolean, decimal, float, double, date, datetime, timestamp, time, json, enum with NULL, default values, unique constraints and foreign keys. The output is a strong starting point: review it before running, especially varchar lengths, decimal precision and special types.
أدوات Laravel migration مجانية من محمد هارون: ارسم ملفات الـ migration كمخطط ER (SVG + Mermaid export) مع تحذيرات الـ indexes والعلاقات، أو حوّل MySQL dump إلى Laravel migrations. يعمل بالكامل داخل متصفحك.