subcom/twill-leads

v1.0.2 2022-10-02 16:19 UTC

This package is not auto-updated.

Last update: 2024-11-11 02:10:40 UTC


README

This a package build with laravel and twill to add menu modul.

Support us

Installation

Project setup

twill-leads

To install twill-leads package and all dependecies run the command below and follow the instructions:

composer require subcom/twill-leads

Config setup

  1. Run command:
php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-leads-views"
php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-emails"
php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-leads-views-site"
php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-success-lang"
php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-resources-success-lang"
php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-leads-public-assets-admin-leads"
php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-leads-database"
  1. Run command:
php artisan migrate
  1. Add this to resources/js/app.js
app.component('NewsletterForm', defineAsyncComponent(() =>
    import('./components/NewsletterForm.vue')
));

app.component('ContactForm', defineAsyncComponent(() =>
    import('./components/ContactForm.vue')
));
  1. Add this to config/twill.php in 'directories' => 'source' => 'blocks'
   '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,
   ],

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.