PHP code example of karabin / laravel-confetti

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

    

karabin / laravel-confetti example snippets


return [
    'token' => env('CONFETTI_API_KEY', ''),
];

use Karabin\Confetti\Facades\Confetti;

$params = [
    'filter[signupType]' => 'rsvp',
    'filter[type]' => 'future',
    'page[size]' => 10,
    'page[number]' => $request->input('page', 1),
    '

use Karabin\Confetti\Facades\Confetti;

$params = [
    'filter[signupType]' => 'rsvp',
    'filter[type]' => 'future',
    'page[size]' => 10,
    'page[number]' => $request->input('page', 1),
    '

use Karabin\Confetti\Facades\Confetti;

$params = [
    '
bash
php artisan vendor:publish --tag="laravel-confetti-config"