Laravel Smart Ads- Simple Ad, Banner and Callouts manager for Laravel

Laravel released Laravel Smart Ads as a simple Ad, Banner, and Callouts Manager for Laravel.

To create ads and place them somewhere on a website with the provided JavaScript and Blade component, can install the package via composer.

This project is open source. The maintainers give their free time to build and maintain the code held within. They make the code free in the hope that it will be of use to other developers. 

The motive was- 
“Let's show the world that developers are civilized and selfless people.”

Laravel Smart Ads

The ad manager dashboard overview:
laravel-smart-ads-is-a-simple-Ad-Banner- and-Callouts-Manager-for-Laravel

Creating New Ads:
laravel-smart-ads-create-new-ads

Placing Ads: To place ads and track clicks a JS have to add to the blade template files header by flowing code:
<script src="{{ asset('vendor/smart-ads/js/smart-banner.js') }}"></script>

In two ways one can place ads / banners in an application

1. Manual Placement
2. Auto Placement

Manual Placement: ad can copy the blade component code from the view ad page and place it at desired location in your blade file. 
Example: an ad with the slug of example-ad can be placed, with the following code.


Manual Placement: ad can copy the blade component code from the view ad page and place it at desired location in your blade file. 
Example: an ad with the slug of example-ad can be placed, with the following code.

<x-smart-ad-component slug="your-example-ad"/>


Auto Placement: 
To place ads at the desired locations on the website by providing the CSS selector, where you are choosing the position and  looking to place the ad  (Before, After and inside selector etc. to place the ad)
laravel-smart-ad-auto-placement
laravel-smart-ad-auto-placement

To Track clicks have to add a global meta csrf token in blade template, inside the head element of your HTML.

<meta name="csrf-token" content="{{ csrf_token() }}">


Note: Patch won't be accepted, if it doesn't have tests. 




Post a Comment

0 Comments