devfactory / version
Display a version number
2.0.2
2015-06-22 15:33 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-11-09 15:20:31 UTC
README
update composer.json
file:
{
"require": {
"laravel/framework": "4.1.*",
"devfactory/version": "dev-master"
}
}
and run composer update
from terminal to download files.
update app.php
file in app/config
directory:
'providers' => array(
'Devfactory\Version\VersionServiceProvider',
),
alias => array(
'Version' => 'Devfactory\Version\VersionFacadeProvider',
),
Publish the configuration
php artisan config:publish devfactory/version
How to use
in the config put the name of the version file: for example : ch.devfactory.project.webapp.version
in your HTML form add following code:
{{ Version::get() }}