milon/blade-variable
Composer 安装命令:
composer require milon/blade-variable
包简介
Declaring variable in blade file
README 文档
README
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
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-02-01