PHP code example of aurawindsurfing / messenger

1. Go to this page and download the library: Download aurawindsurfing/messenger 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/ */

    

aurawindsurfing / messenger example snippets


"    "aurawindsurfing/messenger": "~1.0"
}

'firstUserId'  => 1,
'secondUserId' => 2,

use Aurawindsurfing\Messenger\Messagable;

class User extends Authenticatable {

    use Messagable;


'controller_namespace' => 'App\Http\Controllers',

// customise controller method names if you choose to overwrite default controller
'controller_index'  => 'index',
'controller_create' => 'create',
'controller_store'  => 'store',

bash
php artisan vendor:publish  --provider="Aurawindsurfing\Messenger\MessengerServiceProvider"
bash
php artisan migrate
bash
config/messenger.php
bash
php artisan messenger:generate
bash
php artisan messenger:deleteAllData
bash
php artisan vendor:publish --tag=views --provider="Aurawindsurfing\Messenger\MessengerServiceProvider"
bash
php artisan vendor:publish --tag=migrations --provider="Aurawindsurfing\Messenger\MessengerServiceProvider"