PHP code example of rarq / filament-whatsapp-message-preview
1. Go to this page and download the library: Download rarq/filament-whatsapp-message-preview 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/ */
rarq / filament-whatsapp-message-preview example snippets
use Rarq\FilamentWhatsappMessagePreview\Enums\MessageDirection;
use Rarq\FilamentWhatsappMessagePreview\Forms\Components\WhatsappMessagePreview;
public static function form(Form $form): Form
{
return $form
->schema([
WhatsappMessagePreview::make('message_body')
->label('Message')
-> ->hiddenPreview(false),
]);
}
js
content: [
// ...
'./vendor/rarq/filament-whatsapp-message-preview/resources/views/**/*.blade.php',
]