devfactory/version

Display a version number

2.0.2 2015-06-22 15:33 UTC

This package is auto-updated.

Last update: 2024-12-09 15:34:32 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() }}