PHP code example of alliali-dev / laravel-app-version
1. Go to this page and download the library: Download alliali-dev/laravel-app-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/ */
alliali-dev / laravel-app-version example snippets
\$version = config('version.current'); // Exemple: "1.0.0"
bash
php artisan app:version patch
bash
php artisan app:version minor
bash
php artisan app:version major
bash
php artisan vendor:publish --tag=app-version-config