Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Coding...

Jonathan Zarate zaratedev

😎
Coding...
View GitHub Profile
@zaratedev
zaratedev / phpunit.json
Last active Sep 22, 2020
Snippets Vs code
View phpunit.json
"Create a new phpunit test": {
"scope": "php",
"prefix": "test",
"body": [
"/** @test */",
"public function it_$1()",
"{",
"\t${0:$LINE_COMMENT Code...}",
"}"
],
@zaratedev
zaratedev / .env.ci
Created Aug 31, 2020
Github actions for Laravel dusk
View .env.ci
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000
BCRYPT_ROUNDS=4
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
@zaratedev
zaratedev / .php_cs
Created Dec 6, 2019
The config .php_cs example
View .php_cs
<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => array('syntax' => 'short'),
'combine_consecutive_unsets' => true,
'method_separation' => true,
'no_multiline_whitespace_before_semicolons' => true,
'single_quote' => true,
@zaratedev
zaratedev / RoleCheck.php
Created Aug 2, 2018
Check Role Trait for PHP Laravel
View RoleCheck.php
<?php
namespace App\Traits;
trait RoleCheck
{
/**
* function hasAnyRole.
*
* @param $roles