1. Go to this page and download the library: Download rockbuzz/lara-cw 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/ */
rockbuzz / lara-cw example snippets
// Turn auto deploy on or off, default: true
CW_ENABLED
// Define the deployment environment, default: staging
CW_ENV=
// Define the uri that webhooks will use, default: _deploy
CW_DEPLOY_URI=
// Set authentication and repository values
CW_API_KEY=
CW_API_URL=
CW_EMAIL=
CW_SERVER_ID=
CW_APP_ID=
CW_DEPLOY_PATH=
CW_GIT_URL=
CW_BRANCH_NAME=
namespace App\Http\Middleware;
use Symfony\Component\HttpFoundation\Cookie;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Contracts\Foundation\Application;
class VerifyCsrfToken extends Middleware
{
//...
public function __construct(Application $app, Encrypter $encrypter)
{
parent::__construct($app, $encrypter);
$this->except = array_merge($this->except, [config('cw.routes.index.uri')]);
}
//...
}