gammamatrix/playground-lead

游乐场:为游乐场领导系统提供领导模型。

dev-develop / 73.x-dev 2024-08-17 03:21 UTC

This package is auto-updated.

Last update: 2024-09-17 03:27:46 UTC


README

Playground CI Workflow Test Coverage PHPStan Level 9

游乐场领导是一个为 Laravel 应用程序提供的包。

此应用程序提供使用游乐场领导(一个营销销售管理工具)的模型。

更多关于使用 游乐场领导在 Read the Docs:游乐场文档。

安装

注意: 此包由以下依赖项要求

使用 composer 安装此包以获取访问领导模型的方法

composer require gammamatrix/playground-lead

artisan:about

游乐场领导在 artisan about 命令中提供信息。

配置

默认情况下禁用了迁移。此包有时会在另一个系统处理迁移的情况下安装。

查看发布配置文件的内容: config/playground-lead.php

您可以使用以下命令发布配置文件

php artisan vendor:publish --provider="Playground\Lead\ServiceProvider" --tag="playground-config"

Cloc

composer cloc
➜  playground-lead git:(feature/GH-1) ✗ composer cloc
> cloc --exclude-dir=node_modules,output,vendor .
     102 text files.
      85 unique files.
      18 files ignored.

github.com/AlDanial/cloc v 1.98  T=0.26 s (324.4 files/s, 205414.3 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JSON                            13              0              0          41256
PHP                             64            727           2947           8235
YAML                             1              5              0            275
XML                              3              0              7            215
Markdown                         3             43              1             93
INI                              1              3              0             12
-------------------------------------------------------------------------------
SUM:                            85            778           2955          50086
-------------------------------------------------------------------------------

环境变量

  • 迁移的加载选项在迁移已导出到您的应用程序中时不起作用。加载控制由包 ServiceProvider. 处理。

模型

此包包括 工厂、模型和 迁移,用于

迁移

默认情况下禁用了所有迁移。

查看发布配置文件的内容: database/migrations

  • 注意:将创建 4 个表,它们具有索引和唯一约束;然而,此版本中没有包含外键约束迁移。

您可以使用以下命令发布迁移文件

php artisan vendor:publish --provider="Playground\Lead\ServiceProvider" --tag="playground-migrations"

PHPStan

  • config/
  • database/
  • src/
  • tests/Feature/
  • tests/Unit/
composer analyse

编码标准

composer format

测试

composer test

变更日志

请参阅 CHANGELOG 了解最近更改的更多信息。

致谢

许可

MIT 许可证 (MIT)。请参阅 许可文件 了解更多信息。