PHP code example of rad-themes / client-portal
1. Go to this page and download the library: Download rad-themes/client-portal 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/ */
rad-themes / client-portal example snippets
use RadThemes\ClientPortal\Extensions;
Extensions::page(
'billing',
'Billing',
fn ($user) => view('my-addon::portal.billing', ['user' => $user])->render(), // escape user data yourself
fn ($user) => $user->hasRole('client'), // optional: who sees it
);
bash
php please client-portal:export acme-website portal.json
php please client-portal:import portal.json --slug=acme-website-copy