PHP code example of digital-creative / nova-welcome-card
1. Go to this page and download the library: Download digital-creative/nova-welcome-card 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/ */
digital-creative / nova-welcome-card example snippets
use DigitalCreative\NovaWelcomeCard\WelcomeCard;
class User extends Resource {
public function cards(NovaRequest $request): array
{
return [
WelcomeCard::make()
->title('...') // optional
->description('...') // optional
->addItem(icon: 'home', title: '...', content: '...') // need at least 2 for it to looks good
->addItem(icon: '<svg>...</svg>', title: '...', content: '...'),
];
}
}