- https://github.com/dimsav/laravel-translatable - Traduzir os models
- https://github.com/boxfrommars/rutorika-sortable - Ordenar os models
- https://github.com/caouecs/Laravel-lang - Lista com mais de 46 linguages das mensagens do laravel
- https://github.com/barryvdh/laravel-snappy - Gerador de PDF que extende as funcionalidade do Blade
- https://github.com/KennedyTedesco/Validation - Extende a validação do Laravel
- https://github.com/prettus/l5-repository - Repository Pattern
- https://github.com/VentureCraft/revisionable - Histórico de modificações dos models
- https://github.com/jarektkaczyk/revisionable - Histórico de modificações dos models
- https://github.com/dingo/api - APIs
- https://github.com/thephpleague/fractal - Presenters e Transformers para sua API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on https://github.com/maxolasersquad/Git-Notifier/blob/master/gitnotify.sh | |
declare -A GN_LASTSHOW | |
GN_DURATION=120 | |
for GN_BRANCH in `git branch -a | grep remotes/origin/master | sed 's/ -> .*//' | sed 's/^ //'`; do | |
GN_BRANCH_ARRAY=`echo ${GN_BRANCH} | sed 's/\//_/g'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Post extends Model | |
{ | |
/** | |
* Array of relationships to load. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Http\Response; | |
use App\Exceptions\Handler as BaseExceptionHandler; | |
class WhoopsHandler extends BaseExceptionHandler { | |
/** | |
* Render an exception into a response. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Support\Validators\Rules; | |
use App\Support\Helpers\Dates as DateHelper; | |
class DateField | |
{ | |
/** | |
* @param string $attribute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
####################### ATENCAO ######################### | |
# | |
# VI ESTA DICA EM ALGUM GIST, MAS NÃO TENHO MAIS A URL | |
# POREM EU ALTEREI PARA FAZER BACKUP DE TODAS AS BASES | |
# E ADICIONEI A QUESTÃO DE PODER ADICIONAR O USUÁRIO | |
# E EMAIL NA LINHA DE COMANDO DO git | |
# | |
######################################################### | |
#se você usar apenas usuário sem senha, use este linha abaixo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("lsqlite3") | |
-- Igmar: Wanneer closen we dat DB object eigenlijk ? | |
db = sqlite3.open('/etc/asterisk/users.sqlite') | |
--CONSOLE = "Console/dsp" -- Console interface for demo | |
--CONSOLE = "DAHDI/1" | |
--CONSOLE = "Phone/phone0" | |
TRUNK = "DAHDI/G1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Support\Queries; | |
use Illuminate\Database\Query\Builder as QueryBuilder; | |
use Illuminate\Database\Eloquent\Builder as EloquentQueryBuilder; | |
use Carbon\Carbon; | |
abstract class BaseQueryBuilder | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
switchSound() { | |
NUMBER=$(pacmd list-sinks | grep "* index" | cut -d ' ' -f 5-); | |
echo $NUMBER; | |
echo "Setting default sink to: $NUMBER"; | |
pacmd set-default-sink $NUMBER | |
pacmd list-sink-inputs | grep index | while read line | |
do | |
echo "Moving input: "; |
OlderNewer