Skip to content

Instantly share code, notes, and snippets.

View galloaleonardo's full-sized avatar
:octocat:

Leonardo Gallo galloaleonardo

:octocat:
View GitHub Profile
@galloaleonardo
galloaleonardo / change_php.md
Last active October 15, 2020 18:02
Mudar versão do PHP no host de acordo com a versão do container

Mudar versão do PHP no host de acordo com a versão do container

  • Desinstalar PHP local caso houver.
  • Criar novo arquivo com o nome php em /usr/local/bin/:
sudo nano /usr/local/bin/php
  • Adicionar o seguinte bloco no arquivo e salvar:
#!/bin/bash
<?php
namespace Your\Namespace\Traits;
use Exception;
use Illuminate\Database\Eloquent\Builder;
trait HasCompositePrimaryKey {
/**
@galloaleonardo
galloaleonardo / _ide_helper.php
Created August 20, 2019 16:55 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");