apps4every/extend_database
最新稳定版本:0.0.1
Composer 安装命令:
composer require apps4every/extend_database
包简介
Extend your models and tables definition
README 文档
README
This is a package that extend the definition of a table by request.
How to include in your project:
-
Run
composer require apps4every/extend_database -
Run
php artisan vendor:publish --provider="Apps4every\ExtendDatabase\ExtendDatabaseServiceProviderto publish the Assets and Config
How to use:
- Migration tables:
In your migration table file, add:
require_once config('apps4every_extend_database.pathStatisticalColumns');
Inside your class definition (return new class extends Migration):
use StatisticalColumns; as your first line of code.
- Models:
use App\Models\Includes\DataBaseInformation;
Inside your class definition (class XXX extends Model):
As your first lines of code, include these:
protected $fillable = [];
protected $translatable = [];
const TABLE = "TABLE_NAME";
const IMAGES_PATH = "TABLE_NAME";
use DataBaseInformation;
Functionality included:
- Migration tables:
-
addStatisticalColumns
-
addTableComment
-
addAccessContentColumns
-
addMaintenanceContentColumns
-
addRestrictContentColumns
-
addCommentsRestrictContentColumns
-
addIndexContentColumns
-
addPublishContentColumns
-
addExpirationContentColumns
-
addAdsContentColumns
-
addSeoColumns
- Models:
TO DO
Security Vulnerabilities
If you discover a security vulnerability within any Apps4Every package, please send an e-mail to Apps4Every info mailbox via info@apps4every.com. All security vulnerabilities will be promptly addressed.
License
The Apps4Every packages are open-sourced software licensed under the MIT license.
More from our Apps4Every Team
- Visit our web Apps4Every
- Visit our youtube channel Apps4Every
TO DO
Automatically generate basic Laravel validation rules based on your database table schema!
Example: https://github.com/laracraft-tech/laravel-schema-rules
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-12