当前位置: 首页>>代码示例>>PHP>>正文


PHP View::composers方法代码示例

本文整理汇总了PHP中Illuminate\Support\Facades\View::composers方法的典型用法代码示例。如果您正苦于以下问题:PHP View::composers方法的具体用法?PHP View::composers怎么用?PHP View::composers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\Support\Facades\View的用法示例。


在下文中一共展示了View::composers方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: boot

 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot()
 {
     View::composers(['LaravelAppUi\\Http\\ViewComposers\\MenuComposer' => ['auth.login', 'dashboard.pages.*']]);
 }
开发者ID:NuestraMarca,项目名称:LaravelAppUi,代码行数:9,代码来源:ComposerServiceProvider.php

示例2:

<?php

/**
 * The Maintenance View Composers registration file.
 */
use Illuminate\Support\Facades\View;
View::composers([\Stevebauman\Maintenance\Composers\ClientLayoutComposer::class => 'maintenance::layouts.client', \Stevebauman\Maintenance\Composers\MainLayoutComposer::class => 'maintenance::layouts.main', \Stevebauman\Maintenance\Composers\PublicLayoutComposer::class => 'maintenance::layouts.public', \Stevebauman\Maintenance\Composers\AdminLayoutComposer::class => 'maintenance::layouts.admin', \Stevebauman\Maintenance\Composers\AdminDashboardComposer::class => 'maintenance::admin.dashboard.index', \Stevebauman\Maintenance\Composers\MainNotificationComposer::class => 'maintenance::layouts.partials.notifications', \Stevebauman\Maintenance\Composers\AssetSelectComposer::class => 'maintenance::select.assets', \Stevebauman\Maintenance\Composers\InventorySelectComposer::class => 'maintenance::select.inventories', \Stevebauman\Maintenance\Composers\WorkOrderSelectComposer::class => 'maintenance::select.work-orders', \Stevebauman\Maintenance\Composers\StatusSelectComposer::class => 'maintenance::select.status', \Stevebauman\Maintenance\Composers\PrioritySelectComposer::class => 'maintenance::select.priority', \Stevebauman\Maintenance\Composers\UserSelectComposer::class => 'maintenance::select.users', \Stevebauman\Maintenance\Composers\RouteSelectComposer::class => 'maintenance::select.routes', \Stevebauman\Maintenance\Composers\RoleSelectComposer::class => 'maintenance::select.roles', \Stevebauman\Maintenance\Composers\MetricSelectComposer::class => 'maintenance::select.metric']);
开发者ID:redknitin,项目名称:maintenance,代码行数:7,代码来源:composers.php

示例3: boot

 /**
  * Bootstrap the application services.
  */
 public function boot()
 {
     View::composers(['Tenderos\\Http\\ViewComposers\\Users\\RegisterComposer' => ['auth.register.form', 'dashboard.pages.admin.producers.form', 'dashboard.pages.admin.shopkeepers.form'], 'Tenderos\\Http\\ViewComposers\\SubregionsComposer' => ['dashboard.pages.shopkeeper', 'dashboard.pages.admin.shopkeepers.lists'], 'Tenderos\\Http\\ViewComposers\\MonthsComposer' => ['dashboard.pages.shopkeeper', 'dashboard.pages.admin.shopkeepers.lists'], 'Tenderos\\Http\\ViewComposers\\HomeComposer' => ['dashboard.pages.shopkeeper', 'dashboard.pages.producer'], 'Tenderos\\Http\\ViewComposers\\ShopkeeperComposer' => ['dashboard.pages.shopkeeper', 'dashboard.pages.admin.shopkeepers.lists'], 'Tenderos\\Http\\ViewComposers\\ProducerComposer' => ['dashboard.pages.producer', 'dashboard.pages.admin.producers.lists']]);
 }
开发者ID:NuestraMarca,项目名称:tenderos,代码行数:7,代码来源:ComposerServiceProvider.php

示例4: boot

 /**
  * Bootstrap the application services.
  */
 public function boot()
 {
     View::composers(['Education\\Http\\ViewComposers\\MenuComposer' => ['auth.login', 'dashboard.pages.*'], 'Education\\Http\\ViewComposers\\Companies\\ListComposer' => 'dashboard.pages.companies.list', 'Education\\Http\\ViewComposers\\Areas\\ListComposer' => 'dashboard.pages.companies.users.areas.list', 'Education\\Http\\ViewComposers\\Roles\\ListComposer' => 'dashboard.pages.companies.users.roles.list', 'Education\\Http\\ViewComposers\\Maths\\ListComposer' => 'dashboard.pages.companies.users.maths.list', 'Education\\Http\\ViewComposers\\Categories\\ListComposer' => 'dashboard.pages.companies.users.categories.list', 'Education\\Http\\ViewComposers\\Protocols\\ListComposer' => 'dashboard.pages.companies.users.protocols.list', 'Education\\Http\\ViewComposers\\Protocols\\FormComposer' => 'dashboard.pages.companies.users.protocols.form', 'Education\\Http\\ViewComposers\\Users\\ListComposer' => 'dashboard.pages.companies.users.admin.list', 'Education\\Http\\ViewComposers\\Users\\InactiveComposer' => 'dashboard.pages.companies.users.admin.inactive', 'Education\\Http\\ViewComposers\\Users\\FormComposer' => 'dashboard.pages.companies.users.admin.form', 'Education\\Http\\ViewComposers\\Formats\\Checklists\\ListComposer' => 'dashboard.pages.companies.users.formats.checklists.format.list', 'Education\\Http\\ViewComposers\\Formats\\Observations\\ListComposer' => 'dashboard.pages.companies.users.formats.observations.format.list', 'Education\\Http\\ViewComposers\\Formats\\FormComposer' => 'dashboard.pages.companies.users.formats.*.format.form', 'Education\\Http\\ViewComposers\\Formats\\Checklists\\MyFormatsComposer' => 'dashboard.pages.companies.users.formats.checklists.format.myformats', 'Education\\Http\\ViewComposers\\Formats\\Observations\\MyFormatsComposer' => 'dashboard.pages.companies.users.formats.observations.format.myformats', 'Education\\Http\\ViewComposers\\Protocols\\Generator\\ListComposer' => 'dashboard.pages.companies.users.protocols.generator.config', 'Education\\Http\\ViewComposers\\Protocols\\Generator\\AllComposer' => 'dashboard.pages.companies.users.protocols.generator.all', 'Education\\Http\\ViewComposers\\GeneratedProtocols\\ListComposer' => 'dashboard.pages.companies.users.protocols.generator.list', 'Education\\Http\\ViewComposers\\GeneratedProtocols\\FormComposer' => 'dashboard.pages.companies.users.protocols.generator.form']);
 }
开发者ID:andrestntx,项目名称:Education,代码行数:7,代码来源:ComposerServiceProvider.php

示例5: boot

 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot()
 {
     View::composers(['App\\Http\\ViewComposers\\ProductoComposer' => ['admin.productos.contenidoForm', 'admin.productos.cabeceraTabla', 'front.productos.cabeceraTabla'], 'App\\Http\\ViewComposers\\MarcaComposer' => ['admin.marcas.contenidoForm', 'admin.marcas.cabeceraTabla', 'front.marcas.cabeceraTabla'], 'App\\Http\\ViewComposers\\EmpresaComposer' => ['admin.empresas.contenidoForm', 'admin.empresas.cabeceraTabla'], 'App\\Http\\ViewComposers\\ProductoFrontComposer' => 'front.productos.cabeceraTabla', 'App\\Http\\ViewComposers\\ProductoFrontIndexComposer' => 'front.partes.productos', 'App\\Http\\ViewComposers\\MarcaFrontIndexComposer' => 'front.partes.marcas', 'App\\Http\\ViewComposers\\EmpresaFrontComposer' => 'front.partes.contacto']);
 }
开发者ID:desarrollo-para-triunfadores,项目名称:laautentica,代码行数:9,代码来源:ComposerServiceProvider.php


注:本文中的Illuminate\Support\Facades\View::composers方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。