tnlmedia/laravel-tool

Laravel website tools for TNL Media Group

1.2.2 2025-06-18 10:44 UTC

This package is auto-updated.

Last update: 2025-06-18 10:45:43 UTC


README

Install

composer require tnlmedia/laravel-tool

Config

php artisan vendor:publish --tag=tmg-config
Name Description
tmg-advertising.php Advertising config
tmg-website.php Website global config

How to use

Advertising

// Set page targeting
$key = 'targeting-key';
$list = ['value1', 'value2'];
TMGBlade::setTargeting($key, $list);
// In blade <head> for advertising core javascript
{!! TMGBlade::renderHeader() !!}
// In blade slot position
// You can override config if need
{!! TMGBlade::renderSlot('sample', [
    'targeting' => [
        'key1' => ['value1'],
        'key2' => ['value2', 'value3'],
    ],
]) !!}

Website core

TBD

Available PHP version

  • 8.2
  • 8.4

Available Laravel version

  • 8.x
  • 9.x
  • 10.x
  • 11.x