arindam/blade-variable
最新稳定版本:v1.0.0
Composer 安装命令:
composer require arindam/blade-variable
包简介
A laravel package define variables in blade template
README 文档
README
A laravel package define variables in blade template
Installation
No dependency on PHP version and LARAVEL version
STEP 1: Run the composer command:
composer require arindam/blade-variable
STEP 2: Laravel without auto-discovery:
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
In providers section
Arindam\BladeVariable\BladeVariableServiceProvider::class,
That's it!!, All Done! Now it ready to use
How to use it? How to declare a valiable in blade page?
//declare it @var('myname', 'Arindam') //use it <h1>{{ $myname }}</h1>
//declare it @var('myAge', 36) //use it <p>Age is : {{ $myAge }}</p>
license:
The MIT License (MIT). Please see License File for more information.
Post Issues: if found any
If have any issue please write me.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-19