PHP code example of subcom / twill-leads

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

    

subcom / twill-leads example snippets


composer 

app.component('NewsletterForm', defineAsyncComponent(() =>
    import('./components/NewsletterForm.vue')
));

app.component('ContactForm', defineAsyncComponent(() =>
    import('./components/ContactForm.vue')
));

    'leads' => [

        'title' => 'Leads',
        'icon' => 'quote',
        'component' => 'a17-block-leads',
        'path' => base_path('vendor/subcom/twill-leads/src/Twill/Capsules/Leads/resources/views/admin/blocks'),
        'source' => A17\Twill\Services\Blocks\Block::SOURCE_TWILL,
    ],

    'contactform' => [

    'title' => 'ContactForm',
    'icon' => 'quote',
    'component' => 'a17-block-contactform',
    'path' => base_path('vendor/subcom/twill-leads/src/Twill/Capsules/Leads/resources/views/admin/blocks'),
    'source' => A17\Twill\Services\Blocks\Block::SOURCE_TWILL,
    ],
bash
php artisan migrate