Skip to content

Instantly share code, notes, and snippets.

🌌
Wake up!

Lucas Pires flyingluscas

🌌
Wake up!
Block or report user

Report or block flyingluscas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View componentes.md

Componentes Painel

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

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:

View Moov API Routes.md

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 Jul 26, 2016
Laravel Model Save Method
View LaravelSaveMethod.md

Criando post e salvando no banco

  $post = new Post([
    'title' => 'Batatas não avoam',
    'author' => 'Lucas Pires',
  ]);
  
  $post->save();
View MyPHPUnitSettings.md

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 Oct 3, 2016
Códigos Marotos da Vida (não é meu, só achei jogado nuns projeto por ae, é importante para mim que você saiba disso)
View RandomCrap.md

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');
View DockerCompose.md
version: '2'

services:
  # Source
  source:
    image: tianon/true
    container_name: nomdedoseuappaqui-source
    volumes:
      - ./:/var/www
View example.md
// 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 Oct 28, 2016
Laravel - Example of relationships on seeders
View RelationshipsOnSeeder.md
use Illuminate\Database\Seeder;

class ClientTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
You can’t perform that action at this time.