agenciafmd/admix-banners
Banners - Agência F&MD
2,271
1
| Install | |
|---|---|
composer require agenciafmd/admix-banners |
|
| Latest Version: | 1.0.0 |
| Last Updated: | Aug 27, 2026 |
| Links: | GitHub · Packagist |
Maintainer: agenciafmd
F&MD - Banners

- Banners responsivos descomplicados
Instalação
composer require agenciafmd/admix-banners:v11.x-dev
Execute a migração
php artisan migrate
Para uma customização mais forte, execute:
php artisan vendor:publish --tag=admix-banners:seeders
Não esqueça
- de adicionar o
BannersTableSeeder::classemdatabase/seeders/DatabaseSeeder.php - corrigir o namespace
Agenciafmd\Banners\Database\SeedersparaDatabase\Seeders - de executar o
composer dumpautoload
Uso
Configurações
Caso seja necessário alguma modificação, publique o arquivo de config com o comando:
php artisan vendor:publish --tag=admix-banners:configs
Ex. Para adicionar uma nova localização além de home, adicione um novo item ao array locations, como em: 'home-destaque' => [...]:
<?php
return [
'name' => 'Banners',
'icon' => 'device-desktop',
'sort' => 110,
'locations' => [
'home' => [
'files' => [
'desktop' => [
'max' => 4096,
'max_width' => 3600,
'max_height' => 1700,
'crop_config' => [
// 'aspectRatio' => round(3600 / 1700, 2),
],
'show_meta' => false,
'media' => '(min-width: 1400px)',
],
'notebook' => [
'max' => 2048,
'max_width' => 2080,
'max_height' => 1080,
'crop_config' => [
// 'aspectRatio' => round(2160 / 1660, 2),
],
'show_meta' => false,
'media' => '(min-width: 768px)',
],
'mobile' => [
'max' => 2048,
'max_width' => 1360,
'max_height' => 2380,
'crop_config' => [
// 'aspectRatio' => round(1360 / 2380, 2),
],
'show_meta' => false,
'media' => '(max-width: 767px)',
],
'video' => [
// 'max' => 4096,
// 'show' => true,
],
'video_mobile' => [
// 'max' => 3072,
// 'show' => false,
// 'width' => 640,
// 'height' => 1280,
],
],
],
'home-destaque' => [...],
],
];
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
637,827,751
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
413,412,504
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
391,429,217
4,660