czim / laravel-cms-models
Laravel CMS: Main Models Module Generator
Installs: 2 199
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 1
Open Issues: 9
Requires
- php: >=7.1.3
- czim/laravel-filter: ^1.0
- czim/laravel-repository: ~1.4
- doctrine/dbal: ^2.6
- phpdocumentor/reflection-docblock: ^3.1|^4.1
Requires (Dev)
- czim/laravel-cms-core: ^1.8.0
- czim/laravel-listify: ^1.0
- czim/laravel-paperclip: ^1.6|^2.7
- dimsav/laravel-translatable: ^9.0
- mockery/mockery: ~1.0
- orchestra/database: ~3.8.0
- orchestra/testbench: ~3.8.0
- phpunit/phpunit: ~7.0
- satooshi/php-coveralls: ^1.0
- symfony/dom-crawler: ^3.3
- dev-master
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.11
- 1.5.10
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.11
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.12
- 1.3.11
- 1.3.10
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- dev-laravel-5.6
- dev-laravel-5.5
- dev-laravel-5.7
- dev-laravel-5.3
- dev-laravel-5.4
This package is auto-updated.
Last update: 2021-05-06 10:39:56 UTC
README
CMS for Laravel - Main Models Module
This module offers the means to edit Eloquent models through the Laravel CMS.
Features:
- Model listings
- Edit forms for creating and updating model records
- Elaborate (optional) module configuration and customization.
- Customizable listing columns, scopes, filters, sorting, etc.
- Customizable edit form html, fields, validation rules, create vs. edit forms, etc.
- Customizable model references, display labels, etc.
- Support for Translatable models
- Support for Listify'd models, with drag/drop reordering
- Support for nested child-parent listings and breadcrumb trails
To be used to with the Laravel CMS Core.
For a better end-user experience when using file uploads, installing the Laravel CMS Upload Module is recommended.
Version Compatibility
Laravel | Package |
---|---|
5.3 | 1.3 |
5.4 | 1.4 |
5.5 | 1.5 |
5.6 | 1.6 |
5.7 | 1.7 |
Changelog
Installation
Add the module class to your cms-modules.php
configuration file:
'modules' => [ // ... Czim\CmsModels\Modules\ModelModuleGenerator::class, ],
Add the service provider to your cms-modules.php
configuration file:
'providers' => [ // ... Czim\CmsModels\Providers\CmsModelsServiceProvider::class, // ... ],
To publish the config:
php artisan vendor:publish
Configuration
Models may be added with basic functionality by simply registering them in the cms-models
config, or special CMS model configuration files may be created for them to customize them as needed.
Adding and Configuring Models
To register models with the CMS module, you can either:
-
Add their full class name to the
cms-models.models
config array:<?php 'models' => [ App\Models\YourModel::class, ],
-
Create a model configuration file for them in the configured directory.
By default, this is in theapp/Cms/Models/
directory; this is defined under thecms-models.collector.source.dir
key.
For more details about customizing how models are configured, see the documentation on Model Configuration.
Troubleshooting
If you run into problems, please consult the CMS core troubleshooting section.
Further information
- General information about the CMS
- Model Configuration
- Strategies for all kinds of CMS setup and interaction
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.