PHP code example of datlechin / flarum-references
1. Go to this page and download the library: Download datlechin/flarum-references 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/ */
datlechin / flarum-references example snippets
(new Extend\Conditional())
->whenExtensionEnabled('datlechin-references', fn () => [
(new \Datlechin\References\Extend\ReferenceTargets())
->add(WikiPageTarget::class),
]),
sh
composer migrate
php flarum cache:clear
php flarum references:backfill
sh
composer update datlechin/flarum-references
php flarum migrate
php flarum cache:clear