lelectrolux / content-links
Search for links in your models content, and check them for errors
2.0.0
2026-08-26 02:27 UTC
Requires
- php: ^8.3
- ext-mbstring: *
- guzzlehttp/guzzle: ^8.0
- laravel/framework: ^13.0
- maatwebsite/excel: ^4.0
- nesbot/carbon: ^3.10
- phpoffice/phpspreadsheet: ^5.0
Requires (Dev)
- laravel/pint: ^v1.30
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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