Skip to content

Instantly share code, notes, and snippets.

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

Jonathan Zarate zaratedev

😎
Coding...
View GitHub Profile
<div class="relative isolate bg-white">
<div class="mx-auto grid max-w-7xl grid-cols-1 lg:grid-cols-2">
<div class="relative px-6 pb-20 pt-24 sm:pt-32 lg:static lg:px-8 lg:py-48">
<div class="mx-auto max-w-xl lg:mx-0 lg:max-w-lg">
<div
class="absolute inset-y-0 left-0 -z-10 w-full overflow-hidden bg-gray-100 ring-1 ring-gray-900/10 lg:w-1/2">
<svg class="absolute inset-0 h-full w-full stroke-gray-200 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]"
aria-hidden="true">
<defs>
<pattern id="83fd4e5a-9d52-42fc-97b6-718e5d7ee527" width="200" height="200" x="100%"
@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 / .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 / .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