At first, we need create the entity that represents your datatables. This table will contain instances of a same type.
<?php
cd ~ | |
wget http://downloads.php.net/dsp/php-5.5.0alpha1.tar.gz | |
tar -vzxf php-5.5.0alpha1.tar.gz | |
cd php-5.5.0alpha1/ | |
./configure | |
make | |
make test |
#!/bin/sh | |
VERSION=$1 | |
DEBUG=$2 | |
ZTS=$3 | |
THIRTYTWO=$4 | |
POSTFIX= | |
EXTRA_FLAGS= | |
if (test "${DEBUG}" = "nodebug"); then |
#!/bin/bash | |
help() | |
{ | |
echo "help! I need somebody, help!" | |
exit 1 | |
} | |
# php-get install 5.5.0 /destiny | |
if [ $# -lt 2 ]; |
What happens when I execute the following code? | |
namespace Foo; | |
function strlen() {} | |
const INI_ALL = 3; | |
$a = strlen('hi'); | |
$b = INI_ALL; | |
try |
<?php | |
//maybe, do a source that works like a client with cURL could be hard and boring. | |
// A fluent interface would awesome. | |
// Anyway, the library can be used only to fun and study to learn how HTTP works in lower lever. | |
use Saturno\CoolUrl\Client as cu; | |
cu::create()->target("http://example.com/join") | |
->setMethod('POST') |
def foo(): | |
name = "cloud" | |
age = 22 | |
if age > 22 : | |
print name | |
age += 1 |
; Possible bug on Respect/Config. Test and open an issue. | |
; MONOLOG | |
[redisMonologHandler Monolog\Handler\StreamHandler] | |
[monolog Monolog\Logger] | |
name = phartitura | |
handlers = [[redisMonologHandler],] | |
; handlers = [[redisMonologHandler]] <----- without comma, it's not parsed and the library throws an error | |
; Object of class Respect\Config\Instantiator could not be converted to string in .. /vendor/respect/config/library/Respect/Config/Container.php on line 317 |
1 - Tipo fiz uma sequência aqui de mudanças no código, a lógica ficaria mais ou menos assim?
app/TweetPostRequest
Faço as validações no campos que chegam da request. username e body. No username eu faço a validação se é requerido, se tem espaço e se começa com '@'. No body eu faço a validação se é requerido somente;
app/Http/Controllers/TweetController