1. Go to this page and download the library: Download kenepa/multi-widget 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/ */
kenepa / multi-widget example snippets
// app/Filament/Widgets/UserMultiWidget.php
class UserMultiWidget extends MultiWidget
{
public array $widgets = [
MySubmittedComments::class,
MySubmittedFeedback::class,
MySubscriptions::class,
];
}
// app/Filament/Widgets/ProductSales.php
class ProductSales extends BaseWidget
{
// Some widget content...
public function getDisplayName(): string {
return "Custom name";
}
}
// app/Filament/Widgets/UserMultiWidget.php
class UserMultiWidget extends MultiWidget
{
public array $widgets = [
MySubmittedComments::class,
MySubmittedFeedback::class,
MySubscriptions::class,
];
public function shouldPersistMultiWidgetTabsInSession(): bool
{
return true;
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.