bonsaicms/metamodel-eloquent

Metamodel Eloquent for Bonsai CMS

dev-master 2022-02-25 17:12 UTC

This package is auto-updated.

Last update: 2024-04-06 16:15:26 UTC


README

Installation

You can install the package via composer:

composer require bonsaicms/metamodel-eloquent

Configuration

You can publish the config file with:

php artisan vendor:publish --tag="bonsaicms-metamodel-eloquent-config"

This is the contents of the published config file:

return [
];

Customizing Stubs

You can publish stub files with:

php artisan vendor:publish --tag="bonsaicms-metamodel-eloquent-stubs"

Then, you can edit stub files in resources/stubs/metamodel-eloquent/ folder.

Commands

Generate missing models:

php artisan metamodel:generate-models

Regenerate all models:

php artisan metamodel:regenerate-models

Delete all generated models:

php artisan metamodel:delete-models

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.