定制 kakposoe/laravel-view-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kakposoe/laravel-view-generator

Composer 安装命令:

composer require kakposoe/laravel-view-generator

包简介

A laravel view generator

README 文档

README

Build Status StyleCI

Laravel View Generator adds the missing make:view command to Laravel's commands. You can quickly create new views for your application.

Installation

Install via composer

composer require kakposoe/laravel-view-generator

Register Service Provider

If you use Laravel < 5.5, Add service provider to config/app.php in providers section

Kakposoe\LaravelViewGenerator\LaravelViewGeneratorServiceProvider::class,

How to use

Creating a view is as simple as running:

php artisan make:view index

This command will create /resources/views/index.blade.php

Create a view inside a folder

You can create a view in a folder by using dot notation:

php artisan make:view admin.index

This will create any folders which have not been created already.

Extending a layout

You can create a view which extends a layout using:

php artisan make:view index --layout=admin

Note: *You will be prompted to create a layouts folder and the layout file if they do not exist.

Create a view with sections

You can create a new view file with sections:

php artisan make:view index --section=content --section=styles

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固