illuminate/database — pull request #143 by Freyskeyd (2014-02-27 21:34:34+00:00)
Title: Implement toRawArray and toRawJson

Sometime we need to get an array of all attributes, but we want to keep clean method for `toArray`.

```php
class test extends Illuminate\Database\Eloquent\Model
{
protected $visible = ['ddd'];
protected $hidden = ['bbb'];
}

$d = new test();
$d->ddd = 'bisus';
$d->bbb = 'bisusbbb';
$d->machin = 'truc';

echo json_encode($d->toRawArray()); // {"ddd":"bisus","bbb":"bisusbbb","machin":"truc"}
echo json_encode($d->toArray()); // {"bbb":"bisusbbb"}
```