- 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
const request = require('request'); | |
const fs = require('fs'); | |
const puppeteer = require('puppeteer'); | |
const API_KEY = "SUA_API_KEY_DO_2captcha"; | |
async function curl(options) { | |
return new Promise((resolve, reject) => { | |
request(options, (err, res, body) => { | |
if(err) |
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
const request = require('request'); | |
const puppeteer = require('puppeteer'); | |
const API_KEY = "SUA_API_KEY_NO_2captcha" | |
async function curl(options) { | |
return new Promise((resolve, reject) => { | |
request(options, (err, res, body) => { | |
if(err) | |
return reject(err); |
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 | |
# This script syncs (i.e. makes git pull) on a specified directory or, se no | |
# parameter was specified, in all the subdirectories that are git projects. | |
# | |
# Usage: | |
# ./auto_sync_git.sh directory_of_my_project | |
# ./auto_sync_git.sh | |
# An alias to the git binary |
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
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\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
<?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; | |
use Illuminate\Database\Eloquent\Model; | |
class Post extends Model | |
{ | |
/** | |
* Array of relationships to load. |
NewerOlder