承接 26b/laravel-dynamic-panels 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

26b/laravel-dynamic-panels

Composer 安装命令:

composer require 26b/laravel-dynamic-panels

包简介

Laravel package to create dynamic panels

README 文档

README

Provides an area on your website to display panels dynamically.

Currently supports:

  • Random panel loading.
  • Manual panel changing.
  • Timer based panel changing.

Requires:

  • Livewire
  • AlpineJS

Getting started

Require the package

composer require 26b/laravel-dynamic-panels

Usage

Create as many livewire components as you want, where you overload the method getPanels() with a list of the panels you want to display.

namespace App\Livewire\DynamicPanels;

use TwentySixB\LaravelDynamicPanels\Livewire\PanelContainer;

class Container extends PanelContainer
{

    /**
     * @inheritDoc
     *
     * @return array
     */
    public function getPanels() : array
    {
        return [
            'livewire:profile-completion-panel',
            'did-you-know',
            'app-install',
        ];
    }
}

Next, on your blade view, call the livewire component.

<livewire:dynamic-panels.container />

Customizing

Publish the configuration file should you need to customise it.

php artisan vendor:publish --tag=dynamic-panels-views

统计信息

  • 总下载量: 2.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-04