在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mtolhuys/laravel-schematics开源软件地址(OpenSource Url):https://github.com/mtolhuys/laravel-schematics开源编程语言(OpenSource Language):Vue 43.0%开源软件介绍(OpenSource Introduction):Laravel SchematicsThis package allows you to make multiple diagrams of your Eloquent models and their relations. It will help building them providing drag and drop relations, forms to create and edit your models and many options like adding resource controllers, form requests and running migrations by the click of a button or (configurable) automatically. It also will give you insights in the migrations you ran and the ones specified in your migrations folder. Its aim is to help you (and your team) get more grip on the models from a code perspective, the status of your migrations and build / edit them faster. InstallationYou can install the package via composer: composer require mtolhuys/laravel-schematics --dev Run Or... php artisan vendor:publish --provider="Mtolhuys\LaravelSchematics\LaravelSchematicsServiceProvider" and visit UsageStarting out / SearchingIf you already have a lot of models I recommend you use the search bar to narrow down the diagrams into specific sections f.e: These searches are saved across your diagrams. RelationsWhen you drag and drop the arrow to another model you'll get a form to specify the relation you want to build f.e: Clicking on them will show something like: Building / Editing ModelsTo specify the types of your columns I've chosen the form request rule syntax. To see what's available you can click the little help icon below the fields in the model form: The package is flexible enough to differentiate between renaming and changing column types.
It will create migrations according the need to change or create a table and setup your You don't have to worry about existing migrations though, the package will only look for migrations it created itself
by checking the value of the /**
* Laravel Schematics
*
* WARNING: removing @tag value will disable automated removal
*
* @package Laravel-schematics
* @author Maarten Tolhuijs <[email protected]>
* @url https://github.com/mtolhuys/laravel-schematics
* @tag laravel-schematics-foobar-model
*/ Changing Diagram StyleThere are 4 diagram styles. Bezier, Straight, Flowchart and State Machine: Importing / Exporting DiagramsTo save and / or share the diagrams you created you can use the export and import settings feature: TestingYou can run the tests with: composer test Or, optionally, with coverage information: composer test-coverage ChangelogPlease see CHANGELOG for more information what has changed recently. CreditsThis package is possible because of the effort and time of these people!
ContributingSince I'm getting some questions about this I want these things to be perfectly clear:
Please see CONTRIBUTING for further details. SecurityIf you discover any security related issues, please email [email protected] instead of using the issue tracker. LicenseThe MIT License (MIT). Please see License File for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论