1. Go to this page and download the library: Download refineder/filament-crm 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/ */
refineder / filament-crm example snippets
use Refineder\FilamentCrm\RefinederCrmPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(RefinederCrmPlugin::make());
}
use Refineder\FilamentCrm\Events\MessageReceived;
class NotifyTeamOnNewMessage
{
public function handle(MessageReceived $event): void
{
$message = $event->message;
$contact = $message->conversation->contact;
// Send a notification to your team
Notification::route('slack', config('services.slack.webhook'))
->notify(new NewWhatsAppMessage($contact, $message));
}
}