Skip to content

Instantly share code, notes, and snippets.

View qumberrizvi's full-sized avatar

Qumber Rizvi qumberrizvi

View GitHub Profile
qumberrizvi / bitbucket-pipelines.yml
Last active September 11, 2023 06:30
Bitbucket Pipelines CI/CD: SSH into a server to git pull without conflict. Avoid failure when auto merge tries to open editor for commit message.
# This is a sample build configuration for PHP.
# Check our guides at for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.1.29
- step:
name: Deploy to dev
qumberrizvi / Handler.php
Last active July 14, 2020 06:28
Log events / exceptions to CloudWatch and local filesystem in your Laravel / Lumen app.
//File location: App\Exceptions\
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Validation\ValidationException;
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;