Skip to content

Instantly share code, notes, and snippets.

View flyingluscas's full-sized avatar
🏠
Working from home

fly flyingluscas

🏠
Working from home
View GitHub Profile

Componentes Painel

  • Tabela
  • Formulario
  • Modal
  • Paginação
  • Mensagens de erro
  • Notificações
  • Editor de texto
  • Galeria

Keybase proof

I hereby claim:

  • I am Lucas-Pires on github.
  • I am lucaspiresmattos (https://keybase.io/lucaspiresmattos) on keybase.
  • I have a public key whose fingerprint is 9C9F 3D23 0B6B 9453 7B4F 25A6 D5AD C30A FF9F 18D2

To claim this, I am signing this object:

@flyingluscas
flyingluscas / Moov API Routes.md
Last active June 22, 2016 17:49
Moov API Routes

Moov CLI REST-API

movie/list

Parameter | Required | Type | Default | Description --- | --- | --- | --- | --- | --- limit | No | Integer | 20 | Limit per page page | No | Integer | 1 | Page number quality | No | String | All | 720p, 1080p, 3D query | No | String | null | Search movies by title

@flyingluscas
flyingluscas / LaravelSaveMethod.md
Last active July 26, 2016 16:08
Laravel Model Save Method

Criando post e salvando no banco

  $post = new Post([
    'title' => 'Batatas não avoam',
    'author' => 'Lucas Pires',
  ]);
  
  $post->save();
@flyingluscas
flyingluscas / MyPHPUnitSettings.md
Created August 1, 2016 15:00
My PHPUnit Settings

My PHPUnit Settings

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="bootstrap/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
@flyingluscas
flyingluscas / RandomCrap.md
Last active October 3, 2016 14:28
Códigos Marotos da Vida (não é meu, só achei jogado nuns projeto por ae, é importante para mim que você saiba disso)

Compilado de Bosta

	if($id_insert)
        {
			$return['status']   = 'okay';
			$return['redirect'] = base_url('admin/' . $this->module['name'] . '/newsletter');

			$this->template_lib->set_message('Registro criado com sucesso', 'success');
@flyingluscas
flyingluscas / DockerCompose.md
Last active October 23, 2016 21:13
Docker Compose
version: '2'

services:
  # Source
  source:
    image: tianon/true
    container_name: nomdedoseuappaqui-source
    volumes:
 - ./:/var/www
@flyingluscas
flyingluscas / example.md
Last active October 24, 2016 23:30
Exemplo
// Primeira forma, essa e a mais xerosa
$produto->decrement('quantidade', 3); // isso vai subtrair 3 da quantidade do produto no model

// Segunda forma, nao muito xerosa, mas funciona
$produto->quantidade = $produto->quantidade - 3;
$produto->save();
@flyingluscas
flyingluscas / RelationshipsOnSeeder.md
Last active October 28, 2016 01:47
Laravel - Example of relationships on seeders
use Illuminate\Database\Seeder;

class ClientTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
 */