tnlmedia / laravel-tool
Laravel website tools for TNL Media Group
Installs: 1 772
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- guzzlehttp/guzzle: ^5.0|^6.0|^7.0
- illuminate/console: ^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/database: ^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/view: ^8.0|^9.0|^10.0|^11.0|^12.0
- symfony/finder: ^5.0|^6.0|^7.0
- vlucas/phpdotenv: ^5.0
Requires (Dev)
- laravel/framework: ^8.0|^9.0|^10.0|^11.0|^12.0
- phpunit/phpunit: ^11.0
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