lelectrolux/content-links 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lelectrolux/content-links

最新稳定版本:1.4.1

Composer 安装命令:

composer require lelectrolux/content-links

包简介

Search for links in your models content, and check them for errors

README 文档

README

Search for links in your models content, and check them for errors

Getting Started

First, publish the config and migration files

php artisan vendor:publish --provider=Lelectrolux\ContentLinks\ContentLinksServiceProvider

Then, run the migration

php artisan migrate

Then, for each relevant model:

  • Add 2 imports
use \Lelectrolux\ContentLinks\Contracts\HasContentLinks as HasContentLinksContract;
use \Lelectrolux\ContentLinks\Models\HasContentLinks;
  • Implement HasContentLinksContract
  • Use HasContentLinks

Finally, add all the models ::class to the content-links.models config key

Optionally, add the commands to your scheduler

Available commands

# \Lelectrolux\ContentLinks\Console\Commands\ContentLinksCheck
# php artisan content-links:check {class?*} {--failed}
php artisan content-links:check
php artisan content-links:check App\Models\MyModel
php artisan content-links:check App\Models\MyModel:1,2,3
php artisan content-links:check App\Models\MyModel:1,2,3 App\Models\MyOtherModel
# \Lelectrolux\ContentLinks\Console\Commands\ContentLinksPurge
php artisan content-links:purge

Export

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-06-14