PHP code example of filagora / filagora-entitlements

1. Go to this page and download the library: Download filagora/filagora-entitlements 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/ */

    

filagora / filagora-entitlements example snippets


->plugins([
    \Filagora\Core\FilagoraCorePlugin::make(),
    \Filagora\Entitlements\FilagoraEntitlementsPlugin::make(),
])

'gates' => [
    'filagora.entitlements.manage' => 'admin.entitlements.manage',
],

   app(\Filagora\Entitlements\Services\AuthorizationService::class)->allows($user, 'forums.read');