agenciafmd/admix-banners

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

F&MD - Banners

Área Administrativa

Downloads Licença

  • 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::class em database/seeders/DatabaseSeeder.php
  • corrigir o namespace Agenciafmd\Banners\Database\Seeders para Database\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...

648,266,899 9,701
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released Laravel License
1.0.0 5.8.*