PHP code example of monzer / filament-chatify-integration
1. Go to this page and download the library: Download monzer/filament-chatify-integration 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/ */
monzer / filament-chatify-integration example snippets
use Monzer\FilamentChatifyIntegration\ChatifyPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(ChatifyPlugin::make());
}
namespace App\Filament\Pages;
use Monzer\FilamentChatifyIntegration\Pages\Chatify as BaseChat;
class CustomChatifyPage extends BaseChat
{
protected static ?string $slug = "chat";
protected static ?string $navigationLabel = "Chat";
protected static ?string $title = "Chat";
}
use Monzer\FilamentChatifyIntegration\ChatifyPlugin;
use App\Filament\Pages\CustomChatifyPage;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(ChatifyPlugin::make()->customPage(CustomChatifyPage::class)); // Also accepts a closure
}
use Monzer\FilamentChatifyIntegration\ChatifyPlugin;
use App\Filament\Pages\CustomChatifyPage;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(ChatifyPlugin::make()->disableFloatingChatWidget()); // Also accepts a closure
}