davoodjavadi / cta-records
There is no license information available for the latest version (dev-main) of this package.
records clicks of cta buttons
dev-main
2024-12-06 14:37 UTC
Requires
- illuminate/support: >=v6.0.0
This package is auto-updated.
Last update: 2025-06-06 16:03:17 UTC
README
#Cta Records In Laravel Project
Dynamically record clicks on call-to-action buttons in Laravel.
By installing this package, all <a>
tags that include the href="tel:"
attribute will be stored in the database when clicked by the user, with that number and address of the current page.
###Installation
- First by Composer:
$ composer require davoodjavadi/cta-records
- After add the ServiceProvider to the providers array in config/app.php:
davoodjavadi\ctaRecords\CtaRecordsProvider::class,
- And Add this to your aliases:
'CtaRecords' => davoodjavadi\ctaRecords\CtaRecordsFacade::class,
- After to publish use:
php artisan vendor:publish --provider="davoodjavadi\ctaRecords\CtaRecordsProvider"
- Now Run:
$ php artisan migrate
- Finally, place the
views\ctaRecods\script
codes next to your own codes.