appoly / smart-schema-2
A package to auto generate forms
Installs: 2 052
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- symfony/var-exporter: ^5.0
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')); }