PHP code example of redberryproducts / laravel-version
1. Go to this page and download the library: Download redberryproducts/laravel-version library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
redberryproducts / laravel-version example snippets
return [
'app_version' => env('APP_VERSION', 'N/A'),
];
@@bash
php artisan vendor:publish --tag=laravel-version-config
html
<img src="{{ route('application.version.badge', ['provider' => 'composer']) }}" alt="Composer Version Badge">
<img src="{{ route('application.version.badge', ['provider' => 'env']) }}" alt="Environment Version Badge">