PHP code example of morningtrain / laravel-deployment
1. Go to this page and download the library: Download morningtrain/laravel-deployment 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/ */
morningtrain / laravel-deployment example snippets
return [
/*
|--------------------------------------------------------------------------
| Deployment JSON File
|--------------------------------------------------------------------------
|
| This value is the path to your JSON file. This value is used by the deployment
| parser to know which JSON file to parse and look for deployment information,
| to use in your application or provide services like Bugsnag or CI/CD.
|
*/
'file' => env('DEPLOYMENT_JSON_FILE_PATH'),
];
use Morningtrain\Deployment\Facades\Deployment;
Deployment::version();