PHP code example of netflex / notifications

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

    

netflex / notifications example snippets


[
  'driver' => env('MAIL_DRIVER', 'netflex')
]


use App\Mail\OrderConfirmed;

Mail::to($request->user())->send(new OrderConfirmed($order));



use Netflex\Notifications\Notification;

Mail::to($request->user())->send(
    Notification::resolve('order_confirmed', [
        'firstname' => $order->customer_firstname
    ])
);