PHP code example of rsmmonaem / laravel-meta-ads-attribution

1. Go to this page and download the library: Download rsmmonaem/laravel-meta-ads-attribution 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/ */

    

rsmmonaem / laravel-meta-ads-attribution example snippets


use RsmMonaem\MetaAdsAttribution\Middleware\CaptureMetaAttributionMiddleware;

->withMiddleware(function (Middleware $middleware) {
    $middleware->web(append: [
        CaptureMetaAttributionMiddleware::class,
    ]);
})

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use RsmMonaem\MetaAdsAttribution\Traits\HasMetaAttribution;

class Order extends Model
{
    use HasMetaAttribution;
}
bash
php artisan meta-attribution:install
bash
php artisan migrate
bash
php artisan test