clean up a few more things.
This commit is contained in:
parent
cb5a426cba
commit
7898094e25
|
@ -108,7 +108,7 @@
|
|||
($request->spoofed()) ? $input = $_POST : parse_str(file_get_contents('php://input'), $input);
|
||||
}
|
||||
|
||||
unset($input['_REQUEST_METHOD_']);
|
||||
unset($input['_REQUEST_METHOD']);
|
||||
|
||||
return new Input($container->resolve('laravel.file'), $container->resolve('laravel.cookie'), $input, $_FILES);
|
||||
}),
|
||||
|
|
|
@ -13,7 +13,14 @@ class Connection {
|
|||
protected $config;
|
||||
|
||||
/**
|
||||
* The PDO connection.
|
||||
* The query grammar instance for the connection.
|
||||
*
|
||||
* @var Grammars\Grammar
|
||||
*/
|
||||
protected $grammar;
|
||||
|
||||
/**
|
||||
* The raw PDO connection instance.
|
||||
*
|
||||
* @var PDO
|
||||
*/
|
||||
|
@ -127,13 +134,15 @@ public function table($table)
|
|||
*/
|
||||
protected function grammar()
|
||||
{
|
||||
if (isset($this->grammar)) return $this->grammar;
|
||||
|
||||
switch (isset($this->config['grammar']) ? $this->config['grammar'] : $this->driver())
|
||||
{
|
||||
case 'mysql':
|
||||
return new Grammars\MySQL;
|
||||
return $this->grammar = new Grammars\MySQL;
|
||||
|
||||
default:
|
||||
return new Grammars\Grammar;
|
||||
return $this->grammar = new Grammars\Grammar;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue