appoly/smart-schema-2

There is no license information available for the latest version (1.0.1) of this package.

A package to auto generate forms

1.0.1 2020-02-11 11:35 UTC

This package is auto-updated.

Last update: 2024-10-29 05:28:48 UTC


README

Smart Schema v2 is a package that generates forms using vue js!

This package helps to generate the schema in laravel

Installation

composer require appoly/smart-schema-2
npm i @appoly/smartschema-vue --save

View the VueJS package here https://github.com/appoly/smartschema-vue

Command

php artisan smartschema:generate

This will read your database tables and generate constants files with the schema required for the Vue package. This will give you a quick and easy start and can be modified in anyway

NOTE: running the command again will overwrite any changes

Usage

public function index()
{
    $schema = json_encode(UserSchema::SCHEMA);

    return view('home', compact('schema'));
}