Skip to content

Instantly share code, notes, and snippets.

View websterl3o's full-sized avatar

Leonardo Webster. R. Silva websterl3o

View GitHub Profile
@websterl3o
websterl3o / laravel_conditional_index_migration.php
Created October 13, 2022 12:34 — forked from Razoxane/laravel_conditional_index_migration.php
Laravel - Create Index If Not Exists / Drop Index If Exists
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class LaravelConditionalIndexMigration extends Migration
{
/**
* Run the migrations.
@websterl3o
websterl3o / composer-install-vcs.md
Last active September 28, 2022 19:17 — forked from yidas/composer-install-vcs.md
Instalando pacote do composer via VCS

Instalando pacote do composer via VCS

1. Criar composer.json:

{
    "repositories": [                                             
        {                                                         
            "type": "vcs",                                        
 "url": "https://github.com/name/lib-name"
Note: this assumes you are using ZSH shell.
## Installation
Install [asdf](https://github.com/asdf-vm/asdf):
```
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
@websterl3o
websterl3o / cloudSettings
Last active February 23, 2021 19:03 — forked from leocomelli/git.md
Lista de comandos úteis do GIT
{"lastUpload":"2021-02-23T19:03:23.194Z","extensionVersion":"v3.4.3"}