ajthinking/the-missing-schema

A schema.json file

v0.0.4 2020-04-01 12:35 UTC

This package is auto-updated.

Last update: 2022-07-29 01:57:49 UTC


README

Sometimes we just want to see/use a list of all models and their columns

Installation

composer require ajthinking/the-missing-schema

Usage

<?php

use TheMissingSchema\Schema;

Schema::save();

Now, you can see a file schema.json in your database folder. At the moment it does not do anything, and it does not affect your migrations whatsoever.

{
    "users": [
        {
            "columnName": "name",
            ...
        },
        ...
    ],
    ...
}

Supported drivers

  • sqlite