Skip to content

Instantly share code, notes, and snippets.

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

Erik Figueiredo erikfig

🏠
Working from home
View GitHub Profile
<?php
namespace App\Client;
class Client
{
protected $token;
protected handler()
{
$client = new Client();
{
field: 'bancos_bacen_id',
label: 'Banco',
type: 'select-server',
action: 'bancos/getData',
rules: [v.required],
class: 'col-6',
onChange() {},
},
'QLayout',
'QHeader',
'QDrawer',
'QPageContainer',
'QPage',
'QToolbar',
'QToolbarTitle',
'QBtn',
'QIcon',
# Magic Crud
## Instalação
Copie os arquivos de acordo com a estrutura padrão do Quasar.
No futuro vou transformar em um pacote npm, mas eu chego lá.
## Como usar
protected $appends = ['avatar'];
protected function getAvatarAttribute()
{
return 'https://www.gravatar.com/avatar/' . md5($this->attributes['email']);
}
<?php
class CifraDeCesar
{
const IN = 0;
const OUT = 1;
private $interval;
public function __construct($interval)
-- MySQL dump 10.13 Distrib 5.7.18, for Win64 (x86_64)
--
-- Host: localhost Database: curso_slim_rest
-- ------------------------------------------------------
-- Server version 5.7.18
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
{
field: 'cnpj',
label: 'CNPJ',
mask: '##.###.###/####-##',
visibility: data => data.regime_juridico === 'J',
},
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="result.php" method="post">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="result.php" method="post">