mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-22 20:13:08 +00:00
Tweak behaviour of memory driver and small update
This commit is contained in:
+1
-1
@@ -4124,7 +4124,7 @@ namespace {
|
|||||||
* @param array $options
|
* @param array $options
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function submit($value = null, $options = array()){
|
public static function submit($value = 'Submit', $options = array()){
|
||||||
return self::$root->submit($value, $options);
|
return self::$root->submit($value, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,8 +54,11 @@ class GeneratorCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function setupDefaults(){
|
protected function setupDefaults(){
|
||||||
//Create memory database driver, to avoid connection errors on Database facades
|
//Use a sqlite database in memory, to avoid connection errors on Database facades
|
||||||
\Config::set('database.connections.sqlite.database',':memory');
|
\Config::set('database.connections.sqlite',array(
|
||||||
|
'driver' => 'sqlite',
|
||||||
|
'database' => ':memory:',
|
||||||
|
));
|
||||||
\Config::set('database.default', 'sqlite');
|
\Config::set('database.default', 'sqlite');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user