midnite81/core
Composer 安装命令:
composer require midnite81/core
包简介
A package for core activity within laravel projects
README 文档
README
This is a package for core activity within laravel projects. This is a work in progress and as such documentation is considered a work in progress and not necessarily as up-to-date as the author would like.
This package contains;
- Base Action
- Base Repository
- Artisan Commands
- Attributes
- Converters
- Eloquent Helpers
- Entities, Requests and Responses
- Exceptions
- Helper Functions
- Helper Classes
- Middleware
- Uuid Generator
- Traits
- Transformers
- Validation
Attribute Highlights
For full attribute usage and examples, see Attributes.
#[TrimString]trims a mapped string value for a single property before property handlers and type handlers run.#[TrimStrings]applies the same trimming behaviour to all mapped string properties on a class.
Installation
This package requires PHP 8.1+ and has a Laravel Service Provider, which is auto-registered.
To install through composer include the package in your composer.json.
"midnite81/core": "^2.0"
Run composer install or composer update to download the dependencies, or you can run;
composer require midnite81/core
Service Providers
By default, Midnite81\Core\CoreServiceProvider is automatically registered by laravel, unless you've actively turned
off auto registration in your application. Midnite81\Core ships with an additional service provider to enable the
Commands which come with this package. To install this (or both if needed), you need to add them
to your config/app.php
'providers' => [ // ... \Midnite81\Core\CoreServiceProvider::class, // this is auto installed \Midnite81\Core\CoreCommandServiceProvider::class // ... ]
Configuration files
You may wish to publish the configuration file if you're planning on using the FireScriptCommand or QuickFireScriptCommand
php artisan vendor:publish --provider="Midnite81\Core\CoreServiceProvider"
You're all set!
You're now all set to use midnite81/core. If you have any suggestions please me know or log any issues in the issue section.
统计信息
- 总下载量: 13.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-13