milon/blade-variable 问题修复 & 功能扩展

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

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

milon/blade-variable

Composer 安装命令:

composer require milon/blade-variable

包简介

Declaring variable in blade file

README 文档

README

Packagist Downloads Stable version License

blade-variable

Declaring variables in Laravel blade files.

Installation

Add this line to composer.json file-

require: {
    ...,
    "milon/laravel-blade": "~5.2"
}

For Laravel 5.1 try these lines instead-

require: {
    ...,
    "milon/laravel-blade": "~5.1"
}

Then from your terminal run this command-

composer update

After that add this line to providers array on config/app.php file-

'providers' => [
...,
Milon\BladeVariable\BladeVariableServiceProvider::class,
]

Usage

You can define any variable in blade file like this-

@var('name', 'value')

Then you can use this like any other normal php variable-

{{ $name }}

Copyright

Nuruzzaman Milon
http://milon.im

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2016-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固