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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Wininfo</title> | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> |
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 | |
if (App::environment('production')) { | |
$url = parse_url(getenv("CLEARDB_DATABASE_URL")); | |
putenv("DATABASE_HOST=$url["host"]"); | |
putenv("DATABASE_USERNAME=$url["user"]"); | |
putenv("DATABASE_PASSWORD=$url["pass"]"); | |
putenv("DATABASE_DATABASE=substr($url["path"], 1)"); |
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
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - | |
echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list | |
sudo apt-get update | |
sudo apt-get install hhvm |
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
1. Crie uma conta no Digital Ocean; | |
2. Crie um droplet Ubuntu (estas instruções são baseadas em Ubuntu) | |
3. Escolha o pacote LEMP para ser instalado com seu Ubuntu | |
4. Escolha ou associa sua chave publica para acesso ao servidor | |
5. Acesse seu server usando SSH (ssh root@<ip informado pelo DO>) |
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
@servers(['staging' => 'root@192.168.0.99', 'production' => 'root@192.168.0.100']) | |
<?php | |
$app_name = 'l5eka'; | |
$app_path = '/var/www/vhosts/'.$app_name; | |
$repo = 'https://github.com/vedovelli/l5eka'; | |
$branch = 'aula4'; | |
$keep = 6; | |
$timezone = 'America/Sao_Paulo'; |
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 | |
trait HasRandomStatementTrait | |
{ | |
/** | |
* Random Statements by driver name. | |
* @var array | |
*/ | |
protected $randomStatements = [ | |
'mysql' => 'RAND()', |
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
;(function($) | |
{ | |
'use strict'; | |
$(document).ready(function() { | |
/* | |
Link View - link.js | |
*/ | |
window.console.log('Link View - link.js'); |
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
// Wraper para o método lists | |
public function lists($field, $key) | |
{ | |
return Model::lists($field, $key); | |
} | |
// Podendo concatenar o array com um valor nulo (null) para criar a opção no select | |
// algo tipo: "Selecione um valor" | |
public function lists($field, $key, $selectText = null) | |
{ |
My environment development after install Linux.
Everytime I format my linux, I need search all tools again Urgh.
So, I decided create a List of Best Things after install Linux, I hope help you too.
I currently use elementary OS 0.3 Freya
Index
OlderNewer