• Reading time ~ 1 min
  • 01.02.2023

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

You can use this package to create ads and place them somewhere on your website with the provided JavaScript and Blade component:

<script src="{{ asset('vendor/smart-ads/js/smart-banner.js') }}"></script>

{{-- Manual placement --}}
<x-smart-ad-component slug="your-example-ad"/>

As you can see above, the <x-smart-ad-component/> lets you place an ad via a template. The second way the package allows you to place ads is the automatic route, which enables you to provide a CSS selector to where the ad should render in the DOM. This package also gives you a dashboard and tracks ad clicks by default.

You can get started with this package in your Laravel app by installing it via composer with the following:

composer require 5balloons/laravel-smart-ads

Check out laravel-smart-ads on GitHub for the source code and detailed instructions on using this package.

Comments

No comments yet
Yurij Finiv

Yurij Finiv

Full stack

ABOUT

Professional Fullstack Developer with extensive experience in website and desktop application development. Proficient in a wide range of tools and technologies, including Bootstrap, Tailwind, HTML5, CSS3, PUG, JavaScript, Alpine.js, jQuery, PHP, MODX, and Node.js. Skilled in website development using Symfony, MODX, and Laravel. Experience: Contributed to the development and translation of MODX3 i...

About author CrazyBoy49z
WORK EXPERIENCE
Contact
Ukraine, Lutsk
+380979856297