1. Go to this page and download the library: Download asseco-voice/laravel-inbox 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/ */
asseco-voice / laravel-inbox example snippets
class Message implements CanMatch
{
...
public function getMatchedValues(string $matchBy): array
{
switch ($matchBy) {
case 'from': return [$this->from()];
case 'subject': return [$this->subject()];
case 'something_custom': return [$this->custom()];
default: return [];
}
}
...
}