2017 © Pedro Peláez
 

package blade-variable

Declaring variable in blade file

image

milon/blade-variable

Declaring variable in blade file

  • Wednesday, February 24, 2016
  • by milon
  • Repository
  • 1 Watchers
  • 8 Stars
  • 125 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Packagist Downloads Stable version License, (*1)

blade-variable

Declaring variables in Laravel blade files., (*2)

Installation

Add this line to composer.json file-, (*3)

require: {
    ...,
    "milon/laravel-blade": "~5.2"
}

For Laravel 5.1 try these lines instead-, (*4)

require: {
    ...,
    "milon/laravel-blade": "~5.1"
}

Then from your terminal run this command-, (*5)

composer update

After that add this line to providers array on config/app.php file-, (*6)

'providers' => [
...,
Milon\BladeVariable\BladeVariableServiceProvider::class,
]

Usage

You can define any variable in blade file like this-, (*7)

@var('name', 'value')

Then you can use this like any other normal php variable-, (*8)

{{ $name }}

Nuruzzaman Milon
http://milon.im, (*9)

The Versions

24/02 2016

dev-master

9999999-dev

Declaring variable in blade file

  Sources   Download

GPL-3.0

The Requires

 

01/02 2016

5.1.2

5.1.2.0

Declaring variable in blade file

  Sources   Download

GPL-3.0

The Requires

 

01/02 2016

5.2.1

5.2.1.0

Declaring variable in blade file

  Sources   Download

GPL-3.0

The Requires

 

01/02 2016

5.2.0

5.2.0.0

Declaring variable in blade file

  Sources   Download

GPL-3.0

The Requires

 

01/02 2016

dev-version-5.1

dev-version-5.1

Declaring variable in blade file

  Sources   Download

GPL-3.0

The Requires

 

01/02 2016

5.1.1

5.1.1.0

Declaring variable in blade file

  Sources   Download

GPL-3.0

The Requires

 

01/02 2016

5.1.0

5.1.0.0

Declaring variable in blade file

  Sources   Download

GPL-3.0

The Requires