arindam / blade-variable
A laravel package define variables in blade template
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:laravel-package
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-12-19 19:24:55 UTC
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.