inmanturbo/layout-features 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

inmanturbo/layout-features

最新稳定版本:v1.0.1

Composer 安装命令:

composer require inmanturbo/layout-features

包简介

Layout feature for inmanturbo/features and the laravel-starter-kits

README 文档

README

Latest Version on Packagist

Layout feature for inmanturbo/features and the laravel-starter-kits.

Installation

You can install the package via composer:

composer require inmanturbo/layout-features

The service provider will be automatically registered thanks to Laravel's package auto-discovery.

Publishing Assets

Publish the configuration file

php artisan vendor:publish --tag=layout-config

This will publish the layout.php configuration file to your config directory.

Publish the view examples

php artisan vendor:publish --tag=layout-views

This will publish the Livewire component view to resources/views/livewire/layout-features.blade.php.

Layout Class Methods

The Layout class provides several public static methods for managing layout features:

updateCurrentLayout(string|Layout $layout)

Updates the current layout for the authenticated user. Accepts either a layout name string or a Layout instance.

currentLayout(): ?Layout

Returns the current active Layout instance for the authenticated user, or null if none is set.

layoutComponent(): ?string

Returns the component name of the current layout, or null if no layout is active.

layoutOptions()

Returns an array of all available layout options, merging both configuration-defined and runtime-registered options.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-11