1. Go to this page and download the library: Download enadstack/blogify 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/ */
use Enadstack\Blogify\Facades\Blogify;
Blogify::resolveOwnerUsing(fn () => app()->bound('currentTenant')
? app('currentTenant')
: $this->tenantFromHost(request()->getHost()));
Post::query()->get(); // the current owner only
Post::query()->forOwner($tenant); // one specific owner
Post::query()->platform(); // platform-level content
Post::query()->ownedByAnyone(); // every tenant, excluding the platform
Post::query()->allOwners(); // everything — admin and moderation views