定制 arindam/blade-variable 二次开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-19