Skip to content

Instantly share code, notes, and snippets.

View zaratedev's full-sized avatar
😎
Coding...

Jonathan Zarate zaratedev

😎
Coding...
View GitHub Profile
@zaratedev
zaratedev / .env.ci
Created August 31, 2020 18:55
Github actions for Laravel dusk
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 / launch.json
Created December 1, 2023 16:28
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
@zaratedev
zaratedev / phpunit.json
Last active September 22, 2020 16:36
Snippets Vs code
"Create a new phpunit test": {
"scope": "php",
"prefix": "test",
"body": [
"/** @test */",
"public function it_$1()",
"{",
"\t${0:$LINE_COMMENT Code...}",
"}"
],
@zaratedev
zaratedev / .php_cs
Created December 6, 2019 01:56
The config .php_cs example
<?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 August 2, 2018 22:01
Check Role Trait for PHP Laravel
<?php
namespace App\Traits;
trait RoleCheck
{
/**
* function hasAnyRole.
*
* @param $roles