milon/blade-variable
Declaring variable in blade file
Maintainers
5.2.1
2016-02-01 11:03 UTC
Requires
- php: >=5.5.9
- illuminate/support: 5.*
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
GPL-3.0 0cf5d71713da0d5504700f821e63bea75a7c128f
- Nuruzzaman Milon <contact.woop@milon.im>
This package is auto-updated.
Last update: 2026-06-14 15:33:36 UTC
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
