Skip to content

Instantly share code, notes, and snippets.

View BashirShallah's full-sized avatar

BashirShallah BashirShallah

View GitHub Profile
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
@BashirShallah
BashirShallah / JsonWithAuthHelpers.php
Last active March 27, 2020 04:36
JsonWithAuthHelpers
<?php
namespace Tests\_utilities;
trait JsonWithAuthHelpers {
public function getJsonWithAuth($user, $uri, array $headers = []){
return $this->be($user,'api')->getJson($uri, $headers);
}
<?php
// for Laravel 7+
use Illuminate\Testing\Assert;
use Illuminate\Testing\TestResponse;
// for Laravel 5.*
use Illuminate\Foundation\Testing\Assert;
use Illuminate\Foundation\Testing\TestResponse;
# git
alias g="git"
alias gs="git status"
alias ga="git add ."
alias gc="git commit -m"
alias gn="git init && git add . && git commit -m \"init\""
# laravel
alias pa="php artisan"
alias l="php artisan serve"