PHP code example of lelectrolux / content-links

1. Go to this page and download the library: Download lelectrolux/content-links library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lelectrolux / content-links example snippets


use \Lelectrolux\ContentLinks\Contracts\HasContentLinks as HasContentLinksContract;
use \Lelectrolux\ContentLinks\Models\HasContentLinks;
shell
php artisan vendor:publish --provider=Lelectrolux\ContentLinks\ContentLinksServiceProvider
shell
php artisan migrate
shell
# \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