language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | laravel | framework | 63a534a31129be4cec4f5a694342d7020e2d7f07.json | Allow redirectPath for consistency. | src/Illuminate/Foundation/Auth/AuthenticatesAndRegistersUsers.php | @@ -107,6 +107,11 @@ public function getLogout()
*/
public function redirectPath()
{
+ if (property_exists($this, 'redirectPath'))
+ {
+ return $this->redirectPath;
+ }
+
return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';
}
| false |
Other | laravel | framework | fef793a9ab03a0e7d867fa68939e4055c321af38.json | change indent style
change indent style from 4 spaces to tabs | src/Illuminate/Routing/Router.php | @@ -503,10 +503,10 @@ protected function getGroupResourceName($prefix, $resource, $method)
{
$group = str_replace('/', '.', $this->getLastGroupPrefix());
- if (empty($group))
- {
- return trim("{$prefix}{$resource}.{$method}", '.');
- }
+ if (empty($group))
+ {
+ return trim("{$pref... | false |
Other | laravel | framework | bfeaa370a77b9c853adae6faba4143ad683c0172.json | Add basePath() method to application contract. | src/Illuminate/Contracts/Foundation/Application.php | @@ -10,6 +10,13 @@ interface Application extends Container {
* @return string
*/
public function version();
+
+ /**
+ * Get the base path of the Laravel installation.
+ *
+ * @return string
+ */
+ public function basePath()
/**
* Get or check the current application environment. | false |
Other | laravel | framework | 44c61252b5762ff53ad181ed416e3006c50a6a9b.json | Remove optimize call. | src/Illuminate/Foundation/Console/AppNameCommand.php | @@ -83,10 +83,8 @@ public function fire()
$this->info('Application namespace set!');
$this->composer->dumpAutoloads();
-
- $this->call('clear-compiled');
- $this->call('optimize');
+ $this->call('clear-compiled');
}
/** | false |
Other | laravel | framework | b0ab0a29a416358a15d1872b5252666a35ca6046.json | Add support for terminating callbacks. | src/Illuminate/Foundation/Application.php | @@ -57,6 +57,13 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
*/
protected $bootedCallbacks = array();
+ /**
+ * The array of terminating callbacks.
+ *
+ * @var array
+ */
+ protected $terminatingCallbacks = array();
+
/**
* All of the registered service providers.... | true |
Other | laravel | framework | b0ab0a29a416358a15d1872b5252666a35ca6046.json | Add support for terminating callbacks. | src/Illuminate/Foundation/Console/Kernel.php | @@ -100,6 +100,18 @@ public function handle($input, $output = null)
}
}
+ /**
+ * Terminate the application.
+ *
+ * @param \Symfony\Component\Console\Input\InputInterface $input
+ * @param int $status
+ * @return void
+ */
+ public function terminate($input, $status)
+ {
+ $this->app->terminate();
+ ... | true |
Other | laravel | framework | b0ab0a29a416358a15d1872b5252666a35ca6046.json | Add support for terminating callbacks. | src/Illuminate/Foundation/Http/Kernel.php | @@ -126,6 +126,8 @@ public function terminate($request, $response)
$instance->terminate($request, $response);
}
}
+
+ $this->app->terminate();
}
/** | true |
Other | laravel | framework | e968f3362a0f5c43c6ceb576508e0fed3aa6f21c.json | Remove explicit middleware implements | src/Illuminate/Session/Middleware/StartSession.php | @@ -9,9 +9,8 @@
use Illuminate\Session\CookieSessionHandler;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Contracts\Routing\TerminableMiddleware;
-use Illuminate\Contracts\Routing\Middleware as MiddlewareContract;
-class StartSession implements MiddlewareContract, TerminableMiddleware {
+class Sta... | false |
Other | laravel | framework | 52fd8b764fa699bfce412d89f8e5aea30e4fdcc8.json | Add test for collection keyby closure | tests/Support/SupportCollectionTest.php | @@ -485,8 +485,12 @@ public function testGroupByAttribute()
public function testKeyByAttribute()
{
$data = new Collection([['rating' => 1, 'name' => '1'], ['rating' => 2, 'name' => '2'], ['rating' => 3, 'name' => '3']]);
+
$result = $data->keyBy('rating');
$this->assertEquals([1 => ['rating' => 1, 'name' =... | false |
Other | laravel | framework | d4b6cea0ae1a67e48425c427d48b71f5d078cb90.json | Recreate compiled things in "app:name" command | src/Illuminate/Foundation/Console/AppNameCommand.php | @@ -83,6 +83,10 @@ public function fire()
$this->info('Application namespace set!');
$this->composer->dumpAutoloads();
+
+ $this->call('clear-compiled');
+
+ $this->call('optimize');
}
/** | false |
Other | laravel | framework | 579b13084213b67de205f015d5153c8e960cd615.json | Add message when no paths found | src/Illuminate/Foundation/Console/VendorPublishCommand.php | @@ -56,6 +56,12 @@ public function fire()
$this->option('provider'), $this->option('tag')
);
+ if (empty($paths))
+ {
+ $this->error("There are no paths to publish");
+ return;
+ }
+
foreach ($paths as $from => $to)
{
if ($this->files->isFile($from)) | false |
Other | laravel | framework | 494b959c9ca42e76e110a705e6ed31af78fffafd.json | Fix php artisan app:name crash | src/Illuminate/Foundation/Console/AppNameCommand.php | @@ -111,13 +111,11 @@ protected function replaceNamespace($path)
{
$search = [
'namespace '.$this->currentRoot.';',
- 'namespace '.$this->currentRoot.'\\',
$this->currentRoot.'\\',
];
$replace = [
'namespace '.$this->argument('name').';',
- 'namespace '.$this->argument('name').'\\',
$th... | false |
Other | laravel | framework | e699adda562706a0322cf5d7194d9da19bd6b972.json | boot the php web server from the public dir
Signed-off-by: Suhayb Wardany <me@suw.me> | src/Illuminate/Foundation/Console/ServeCommand.php | @@ -26,17 +26,17 @@ class ServeCommand extends Command {
*/
public function fire()
{
- chdir($this->laravel->basePath());
+ chdir($this->laravel->publicPath());
$host = $this->input->getOption('host');
$port = $this->input->getOption('port');
- $public = $this->laravel->publicPath();
+ $base = $t... | false |
Other | laravel | framework | 8a19d18ff80338f64bf01a32d0297b9bd97344a8.json | Sync it up with master branch. | src/Illuminate/Foundation/Console/KeyGenerateCommand.php | @@ -34,14 +34,13 @@ public function fire()
return $this->line('<comment>'.$key.'</comment>');
}
- foreach ([base_path('.env'), base_path('.env.example')] as $path)
+ $path = base_path('.env');
+
+ if (file_exists($path))
{
- if (file_exists($path))
- {
- file_put_contents($path, str_replace(
- ... | false |
Other | laravel | framework | 41e2080cb2811e9063672248311a66f65e6d899e.json | store the generated key in the .env file only | src/Illuminate/Foundation/Console/KeyGenerateCommand.php | @@ -34,14 +34,13 @@ public function fire()
return $this->line('<comment>'.$key.'</comment>');
}
- foreach ([base_path('.env'), base_path('.env.example')] as $path)
+ $path = base_path('.env');
+
+ if (file_exists($path))
{
- if (file_exists($path))
- {
- file_put_contents($path, str_replace(
- ... | false |
Other | laravel | framework | 058eebfaf9124e9d475a7da966ca56a9e1c81718.json | Set the internal encoding of mastering. | src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php | @@ -38,6 +38,8 @@ public function bootstrap(Application $app)
}
date_default_timezone_set($config['app.timezone']);
+
+ mb_internal_encoding('UTF-8');
}
/** | false |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | composer.json | @@ -89,7 +89,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "5.0-dev"
+ "dev-master": "5.1-dev"
}
},
"suggest": { | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Auth/composer.json | @@ -10,10 +10,10 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/http": "5.0.*",
- "illuminate/session": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/http": "5.1.*",
+ ... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Bus/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*"
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*"
},
"autoload": {
"psr-4": {
@@ -20,7 +20,7 @@
},
"extra": ... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Cache/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
"nesbot/carbon": "~1.0"
},
"autoload": {
@@ -21,13 +21,13 @@
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Config/composer.json | @@ -10,9 +10,9 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/filesystem": "5.0.*",
- "illuminate/support": "5.0.*"
+ "illuminate/contracts": "5.1.*",
+ "illuminate/filesystem": "5.1.*",
+ "illuminate/support": "5.1.*"
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Console/composer.json | @@ -10,7 +10,7 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
+ "illuminate/contracts": "5.1.*",
"symfony/console": "2.6.*"
},
"autoload": {
@@ -20,7 +20,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "5.0-d... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Container/composer.json | @@ -10,7 +10,7 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*"
+ "illuminate/contracts": "5.1.*"
},
"autoload": {
"psr-4": {
@@ -19,7 +19,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "5.0-dev"
+ "... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Contracts/composer.json | @@ -18,7 +18,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "5.0-dev"
+ "dev-master": "5.1-dev"
}
},
"minimum-stability": "dev" | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Cookie/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
"symfony/http-kernel": "2.6.*",
"symfony/http-foundation": "2.6.*"
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Database/composer.json | @@ -11,9 +11,9 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/container": "5.0.*",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/container": "5.1.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Encryption/composer.json | @@ -11,8 +11,8 @@
"require": {
"php": ">=5.4.0",
"ext-openssl": "*",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
"symfony/security-core": "2.6.*"
},
"autoload... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Events/composer.json | @@ -10,9 +10,9 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/container": "5.0.*",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*"
+ "illuminate/container": "5.1.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*"
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Filesystem/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
"symfony/finder": "2.6.*",
"league/flysystem": "~1.0"
},
@@ -2... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Foundation/Application.php | @@ -20,7 +20,7 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
*
* @var string
*/
- const VERSION = '5.0-dev';
+ const VERSION = '5.1-dev';
/**
* The base path for the Laravel installation. | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Hashing/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
"ircmaxell/password-compat": "~1.0"
},
"autoload": {
@@ -21,7 +21,... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Http/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/session": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/session": "5.1.*",
+ "illuminate/support": "5.1.*",
"symfony/http-foundation": "2.6.*",
"symfony/http-kernel": "2.6.*"
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Log/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
"monolog/monolog": "~1.11"
},
"autoload": {
@@ -21,7 +21,7 @@
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Mail/composer.json | @@ -10,9 +10,9 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/container": "5.0.*",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/container": "5.1.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Pagination/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*"
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*"
},
"autoload": {
"psr-4": {
@@ -20,7 +20,7 @@
},
"extra": ... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Pipeline/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*"
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*"
},
"autoload": {
"psr-4": {
@@ -20,7 +20,7 @@
},
"extra": ... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Queue/composer.json | @@ -10,11 +10,11 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/console": "5.0.*",
- "illuminate/contracts": "5.0.*",
- "illuminate/container": "5.0.*",
- "illuminate/http": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/console": "5.1.*",
+ ... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Redis/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
"predis/predis": "~1.0"
},
"autoload": {
@@ -21,7 +21,7 @@
},... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Routing/composer.json | @@ -10,12 +10,12 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/container": "5.0.*",
- "illuminate/contracts": "5.0.*",
- "illuminate/http": "5.0.*",
- "illuminate/pipeline": "5.0.*",
- "illuminate/session": "5.0.*",
- "illuminate/support": "5.0.*",
+ ... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Session/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
"nesbot/carbon": "~1.0",
"symfony/finder": "2.6.*",
"symfo... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Support/composer.json | @@ -11,7 +11,7 @@
"require": {
"php": ">=5.4.0",
"ext-mbstring": "*",
- "illuminate/contracts": "5.0.*",
+ "illuminate/contracts": "5.1.*",
"doctrine/inflector": "~1.0",
"danielstjules/stringy": "~1.8"
},
@@ -25,7 +25,7 @@
},
"extra": {
"bra... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Translation/composer.json | @@ -10,8 +10,8 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/filesystem": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/filesystem": "5.1.*",
+ "illuminate/support": "5.1.*",
"symfony/translation": "2.6.*"
},
"autoload": {
@@ -21,7 +21,7 @... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/Validation/composer.json | @@ -10,9 +10,9 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/container": "5.0.*",
- "illuminate/contracts": "5.0.*",
- "illuminate/support": "5.0.*",
+ "illuminate/container": "5.1.*",
+ "illuminate/contracts": "5.1.*",
+ "illuminate/support": "5.1.*",
... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | src/Illuminate/View/composer.json | @@ -10,10 +10,10 @@
],
"require": {
"php": ">=5.4.0",
- "illuminate/container": "5.0.*",
- "illuminate/contracts": "5.0.*",
- "illuminate/filesystem": "5.0.*",
- "illuminate/support": "5.0.*"
+ "illuminate/container": "5.1.*",
+ "illuminate/contracts": "5.1.*... | true |
Other | laravel | framework | 7c88863f671da7465a73a7a56f8d3f5ba691a8d3.json | Update versions for 5.1 | tests/Console/ConsoleApplicationTest.php | @@ -48,7 +48,7 @@ public function testResolveAddsCommandViaApplicationResolution()
protected function getMockConsole(array $methods)
{
- $app = m::mock('Illuminate\Contracts\Foundation\Application', ['version' => '5.0']);
+ $app = m::mock('Illuminate\Contracts\Foundation\Application', ['version' => '5.1']);
... | true |
Other | laravel | framework | 2d640470494d47cceda56de32ba384f59444665e.json | Update build scripts. | build/illuminate-split-full.sh | @@ -1,27 +1,25 @@
git subsplit init git@github.com:laravel/framework.git
git subsplit publish src/Illuminate/Auth:git@github.com:illuminate/auth.git
-git subsplit publish --heads="master" src/Illuminate/Bus:git@github.com:illuminate/bus.git
+git subsplit publish --heads="master 5.0" src/Illuminate/Bus:git@github.com:... | true |
Other | laravel | framework | 2d640470494d47cceda56de32ba384f59444665e.json | Update build scripts. | build/illuminate-split.sh | @@ -1,31 +1,29 @@
git subsplit init git@github.com:laravel/framework.git
-git subsplit publish --heads="master 4.1 4.2" --no-tags src/Illuminate/Auth:git@github.com:illuminate/auth.git
-git subsplit publish --heads="master" --no-tags src/Illuminate/Bus:git@github.com:illuminate/bus.git
-git subsplit publish --heads="m... | true |
Other | laravel | framework | c633877a8a82b341127bf13a4b4cd7ea0bf9b176.json | Change "stirng" to "string" | src/Illuminate/Contracts/Queue/Queue.php | @@ -36,7 +36,7 @@ public function later($delay, $job, $data = '', $queue = null);
/**
* Push a new job onto the queue.
*
- * @param stirng $queue
+ * @param string $queue
* @param string $job
* @param mixed $data
* @return mixed | true |
Other | laravel | framework | c633877a8a82b341127bf13a4b4cd7ea0bf9b176.json | Change "stirng" to "string" | src/Illuminate/Queue/Queue.php | @@ -20,7 +20,7 @@ abstract class Queue {
/**
* Push a new job onto the queue.
*
- * @param stirng $queue
+ * @param string $queue
* @param string $job
* @param mixed $data
* @return mixed | true |
Other | laravel | framework | dfa2915aea00cd3f296e458c5f73b62824a86195.json | Update response to handle json requests as well | src/Illuminate/Foundation/Http/FormRequest.php | @@ -128,7 +128,7 @@ protected function failedAuthorization()
*/
public function response(array $errors)
{
- if ($this->ajax())
+ if ($this->ajax() || $this->wantsJson())
{
return new JsonResponse($errors, 422);
} | false |
Other | laravel | framework | f219ab878c4781ffcd1915b2e276a302f8ec935b.json | Allow configuration of storage path. | src/Illuminate/Foundation/Application.php | @@ -78,6 +78,13 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
*/
protected $deferredServices = array();
+ /**
+ * The custom storage path defined by the developer.
+ *
+ * @var string
+ */
+ protected $storagePath;
+
/**
* The environment file to load during bootstr... | false |
Other | laravel | framework | 5165d44c7741dd901d71ca3e9a40b14e4170d7c1.json | Use model@hydrate in builder@getModels | src/Illuminate/Database/Eloquent/Builder.php | @@ -377,26 +377,11 @@ public function onDelete(Closure $callback)
*/
public function getModels($columns = array('*'))
{
- // First, we will simply get the raw results from the query builders which we
- // can use to populate an array with Eloquent models. We will pass columns
- // that should be selected as w... | true |
Other | laravel | framework | 5165d44c7741dd901d71ca3e9a40b14e4170d7c1.json | Use model@hydrate in builder@getModels | src/Illuminate/Database/Eloquent/Model.php | @@ -481,59 +481,50 @@ public function newInstance($attributes = array(), $exists = false)
* Create a new model instance that is existing.
*
* @param array $attributes
+ * @param string|null $connection
* @return static
*/
- public function newFromBuilder($attributes = array())
+ public function newF... | true |
Other | laravel | framework | 5165d44c7741dd901d71ca3e9a40b14e4170d7c1.json | Use model@hydrate in builder@getModels | tests/Database/DatabaseEloquentBuilderTest.php | @@ -234,19 +234,14 @@ public function testGetModelsProperlyHydratesModels()
$records[] = array('name' => 'taylor', 'age' => 26);
$records[] = array('name' => 'dayle', 'age' => 28);
$builder->getQuery()->shouldReceive('get')->once()->with(array('foo'))->andReturn($records);
- $model = m::mock('Illuminate\Datab... | true |
Other | laravel | framework | 5165d44c7741dd901d71ca3e9a40b14e4170d7c1.json | Use model@hydrate in builder@getModels | tests/Database/DatabaseEloquentIntegrationTest.php | @@ -187,6 +187,21 @@ public function testOneToManyRelationship()
}
+ public function testBasicModelHydration()
+ {
+ EloquentTestUser::create(['email' => 'taylorotwell@gmail.com']);
+ EloquentTestUser::create(['email' => 'abigailotwell@gmail.com']);
+
+ $models = EloquentTestUser::hydrateRaw('SELECT * FROM use... | true |
Other | laravel | framework | 5165d44c7741dd901d71ca3e9a40b14e4170d7c1.json | Use model@hydrate in builder@getModels | tests/Database/DatabaseEloquentModelTest.php | @@ -73,14 +73,18 @@ public function testNewInstanceReturnsNewInstanceWithAttributesSet()
public function testHydrateCreatesCollectionOfModels()
{
$data = array(array('name' => 'Taylor'), array('name' => 'Otwell'));
- $collection = EloquentModelStub::hydrate($data);
+ $collection = EloquentModelStub::hydrate($d... | true |
Other | laravel | framework | 66ff9dfa46af106139f1a1f727f9ed051f494833.json | Fix typo in UrlGenerator | src/Illuminate/Routing/UrlGenerator.php | @@ -331,7 +331,7 @@ protected function replaceNamedParameters($path, &$parameters)
*/
protected function addQueryString($uri, array $parameters)
{
- // If the URI has a fragmnet, we will move it to the end of the URI since it will
+ // If the URI has a fragment, we will move it to the end of the URI since it w... | false |
Other | laravel | framework | 45cb9128a5f3f9b2c7d280df6a01d9daf57df6a3.json | Use array_merge instead of config_merge
For simpler merging of default config. | src/Illuminate/Support/ServiceProvider.php | @@ -54,7 +54,7 @@ protected function mergeConfigFrom($key, $path)
{
$config = $this->app['config']->get($key, []);
- $this->app['config']->set($key, config_merge(require $path, $config));
+ $this->app['config']->set($key, array_merge(require $path, $config));
}
/** | false |
Other | laravel | framework | d3e96cf12e04bee156365783f96f02498cbfa173.json | Remove dead code
This appears to be left-over from before a later refactoring. This
function is never called with the `change` parameter, and the code path
for changing columns is totally different. | src/Illuminate/Database/Schema/Grammars/Grammar.php | @@ -112,14 +112,13 @@ public function compileForeign(Blueprint $blueprint, Fluent $command)
* Compile the blueprint's column definitions.
*
* @param \Illuminate\Database\Schema\Blueprint $blueprint
- * @param bool $change
* @return array
*/
- protected function getColumns(Blueprint $blueprint, $change... | false |
Other | laravel | framework | 0524af4e9d18f7a8d4b1f7e9b5958580d306f024.json | Use config_merge instead of array_merge | src/Illuminate/Support/ServiceProvider.php | @@ -54,7 +54,7 @@ protected function loadConfigFrom($key, $path)
{
$defaults = $this->app['files']->getRequire($path);
$config = $this->app['config']->get($key, []);
- $this->app['config']->set($key, array_merge($defaults, $config));
+ $this->app['config']->set($key, config_merge($defaults, $config));
}
... | false |
Other | laravel | framework | 75fa3461ee998bc1f8475de97917b94a25d5d35c.json | Add another method for more fluency. | src/Illuminate/Filesystem/FilesystemManager.php | @@ -44,6 +44,17 @@ public function __construct($app)
$this->app = $app;
}
+ /**
+ * Get a filesystem instance.
+ *
+ * @param string $name
+ * @return \Illuminate\Contracts\Filesystem\Filesystem
+ */
+ public function drive($name = null)
+ {
+ return $this->disk($name);
+ }
+
/**
* Get a filesystem ... | false |
Other | laravel | framework | 2d48bbcdf613864660d652270b9cb0b7e6298cf5.json | Add disk facade. | src/Illuminate/Support/Facades/Disk.php | @@ -0,0 +1,15 @@
+<?php namespace Illuminate\Support\Facades;
+
+/**
+ * @see \Illuminate\Filesystem\FilesystemManager
+ */
+class Disk extends Facade {
+
+ /**
+ * Get the registered name of the component.
+ *
+ * @return string
+ */
+ protected static function getFacadeAccessor() { return 'filesystem'; }
+
+} | false |
Other | laravel | framework | 7700c715d712c878bbd472644227a404e8c584c5.json | Return sendRawEmail to catch the message Id. | src/Illuminate/Mail/Transport/SesTransport.php | @@ -54,7 +54,7 @@ public function stop()
*/
public function send(Swift_Mime_Message $message, &$failedRecipients = null)
{
- $this->ses->sendRawEmail([
+ return $this->ses->sendRawEmail([
'Source' => $message->getSender(),
'Destinations' => $this->getTo($message),
'RawMessage' => [ | false |
Other | laravel | framework | ef734e77237fff4c1202e0056da499ecec724b85.json | Use Collection@lists in Builder@lists | src/Illuminate/Database/Query/Builder.php | @@ -888,7 +888,7 @@ public function orWhereNotNull($column)
{
return $this->whereNotNull($column, 'or');
}
-
+
/**
* Add a "where date" statement to the query.
*
@@ -902,7 +902,7 @@ public function whereDate($column, $operator, $value, $boolean = 'and')
{
return $this->addDateBasedWhere('Date', $co... | true |
Other | laravel | framework | ef734e77237fff4c1202e0056da499ecec724b85.json | Use Collection@lists in Builder@lists | tests/Database/DatabaseEloquentIntegrationTest.php | @@ -106,6 +106,19 @@ public function testBasicModelCollectionRetrieval()
}
+ public function testListsRetrieval()
+ {
+ EloquentTestUser::create(['id' => 1, 'email' => 'taylorotwell@gmail.com']);
+ EloquentTestUser::create(['id' => 2, 'email' => 'abigailotwell@gmail.com']);
+
+ $simple = EloquentTestUser::olde... | true |
Other | laravel | framework | b31c47de7c9321388548f765f5d1a044060c8ed4.json | Write a simple publisher. | src/Illuminate/Foundation/Console/VendorPublishCommand.php | @@ -0,0 +1,126 @@
+<?php namespace Illuminate\Foundation\Console;
+
+use Illuminate\Console\Command;
+use Illuminate\Filesystem\Filesystem;
+use Illuminate\Support\ServiceProvider;
+
+class VendorPublishCommand extends Command {
+
+ /**
+ * The filesystem instance.
+ *
+ * @var \Illuminate\Filesystem\Filesystem
+ *... | true |
Other | laravel | framework | b31c47de7c9321388548f765f5d1a044060c8ed4.json | Write a simple publisher. | src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php | @@ -22,6 +22,7 @@
use Illuminate\Foundation\Console\ProviderMakeCommand;
use Illuminate\Foundation\Console\HandlerEventCommand;
use Illuminate\Foundation\Console\ClearCompiledCommand;
+use Illuminate\Foundation\Console\VendorPublishCommand;
use Illuminate\Foundation\Console\HandlerCommandCommand;
class ArtisanSe... | true |
Other | laravel | framework | b31c47de7c9321388548f765f5d1a044060c8ed4.json | Write a simple publisher. | src/Illuminate/Foundation/helpers.php | @@ -126,6 +126,20 @@ function bcrypt($value, $options = array())
}
}
+if ( ! function_exists('collect'))
+{
+ /**
+ * Create a collection from the given value.
+ *
+ * @param mixed $value
+ * @return \Illuminate\Support\Collection
+ */
+ function collect($value)
+ {
+ return Illuminate\Support\Collection::... | true |
Other | laravel | framework | b31c47de7c9321388548f765f5d1a044060c8ed4.json | Write a simple publisher. | src/Illuminate/Support/ServiceProvider.php | @@ -18,6 +18,13 @@ abstract class ServiceProvider {
*/
protected $defer = false;
+ /**
+ * The paths that should be published.
+ *
+ * @var array
+ */
+ protected static $publishes = [];
+
/**
* Create a new service provider instance.
*
@@ -45,7 +52,7 @@ abstract public function register();
*/
p... | true |
Other | laravel | framework | f192375993d9fc269474b28d4d3034a9480ffb1f.json | Add proper release method for SqsJob | src/Illuminate/Queue/Jobs/SqsJob.php | @@ -86,7 +86,11 @@ public function release($delay = 0)
{
parent::release($delay);
- // SQS job releases are handled by the server configuration...
+ $this->sqs->changeMessageVisibility(array(
+ 'QueueUrl' => $this->queue,
+ 'ReceiptHandle' => $this->job['ReceiptHandle'],
+ 'VisibilityTimeout... | true |
Other | laravel | framework | f192375993d9fc269474b28d4d3034a9480ffb1f.json | Add proper release method for SqsJob | tests/Queue/QueueSqsJobTest.php | @@ -17,6 +17,7 @@ public function setUp() {
$this->account = '1234567891011';
$this->queueName = 'emails';
$this->baseUrl = 'https://sqs.someregion.amazonaws.com';
+ $this->releaseDelay = 0;
// The Aws\Common\AbstractClient needs these three constructor parameters
$this->credentials = new Credentials(... | true |
Other | laravel | framework | 25b4791d7aa4d7c1a833553ac7c3d8de648eedea.json | Add __call to filesystem manager. | src/Illuminate/Filesystem/FilesystemManager.php | @@ -207,4 +207,16 @@ public function extend($driver, Closure $callback)
return $this;
}
+ /**
+ * Dynamically call the default driver instance.
+ *
+ * @param string $method
+ * @param array $parameters
+ * @return mixed
+ */
+ public function __call($method, $parameters)
+ {
+ return call_user_func_... | false |
Other | laravel | framework | 2f59c2c5459530e9a0be8c40ac536c06f3e99973.json | Remove unnecessary findOrFail method | src/Illuminate/Database/Eloquent/Model.php | @@ -714,20 +714,6 @@ public static function findOrNew($id, $columns = array('*'))
return new static;
}
- /**
- * Find a model by its primary key or throw an exception.
- *
- * @param mixed $id
- * @param array $columns
- * @return \Illuminate\Support\Collection|static
- *
- * @throws \Illuminate\Datab... | true |
Other | laravel | framework | 2f59c2c5459530e9a0be8c40ac536c06f3e99973.json | Remove unnecessary findOrFail method | tests/Database/DatabaseEloquentIntegrationTest.php | @@ -106,6 +106,39 @@ public function testBasicModelCollectionRetrieval()
}
+ public function testFindOrFail()
+ {
+ EloquentTestUser::create(['id' => 1, 'email' => 'taylorotwell@gmail.com']);
+ EloquentTestUser::create(['id' => 2, 'email' => 'abigailotwell@gmail.com']);
+
+ $single = EloquentTestUser::findOrFa... | true |
Other | laravel | framework | 2f59c2c5459530e9a0be8c40ac536c06f3e99973.json | Remove unnecessary findOrFail method | tests/Database/DatabaseEloquentModelTest.php | @@ -113,15 +113,6 @@ public function testFindMethodUseWritePdo()
}
- /**
- * @expectedException Illuminate\Database\Eloquent\ModelNotFoundException
- */
- public function testFindOrFailMethodThrowsModelNotFoundException()
- {
- $result = EloquentModelFindNotFoundStub::findOrFail(1);
- }
-
-
public function t... | true |
Other | laravel | framework | 421228dfee48dd456b06790e4db690a8918595de.json | Fix eloquent integration test | tests/Database/DatabaseEloquentIntegrationTest.php | @@ -3,7 +3,7 @@
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Model as Eloquent;
-class DatabaseEloquentIntegrationTests extends PHPUnit_Framework_TestCase {
+class DatabaseEloquentIntegrationTest extends PHPUnit_Framework_TestCase {
/**
* Bootstrap Eloquent.
@@ -95,14 +95,14 @@ public... | false |
Other | laravel | framework | c690f8b0e8286abb326e459ccc24e502fd6dc211.json | Add eloquent integration tests | tests/Database/DatabaseEloquentIntegrationTests.php | @@ -56,6 +56,13 @@ public function setUp()
$table->string('name');
$table->timestamps();
});
+
+ $this->schema()->create('photos', function($table) {
+ $table->increments('id');
+ $table->morphs('imageable');
+ $table->string('name');
+ $table->timestamps();
+ });
}
@@ -69,6 +76,7 @@ public f... | false |
Other | laravel | framework | 3f5863966d90b5f76b3adb3582bc0b33569a3ccc.json | Fix a bug with how commands are queued. | src/Illuminate/Foundation/Console/Kernel.php | @@ -180,24 +180,7 @@ public function bootstrap()
$this->app->bootstrapWith($this->bootstrappers());
}
- // If we are just calling another queue command, we will only load the queue
- // service provider. This saves a lot of file loading as we don't need to
- // load the providers with commands for every pos... | false |
Other | laravel | framework | bfd01c401f632d5701fee171c24d2b515527a176.json | Set the e-mail subject to something reasonable. | src/Illuminate/Foundation/Auth/ResetsPasswords.php | @@ -41,7 +41,12 @@ public function postEmail(Request $request)
{
$this->validate($request, ['email' => 'required']);
- switch ($response = $this->passwords->sendResetLink($request->only('email')))
+ $response = $this->passwords->sendResetLink($request->only('email'), function($m)
+ {
+ $m->subject($this->ge... | false |
Other | laravel | framework | 056cca40af72c26ab2320398935dfcfd4d62d59d.json | Remove config cache. | src/Illuminate/Config/Repository.php | @@ -12,13 +12,6 @@ class Repository implements ArrayAccess, ConfigContract {
*/
protected $items = [];
- /**
- * The cache of configuration items.
- *
- * @var array
- */
- protected $cache = [];
-
/**
* Create a new configuration repository.
*
@@ -50,12 +43,7 @@ public function has($key)
*/
pub... | false |
Other | laravel | framework | ad981a10ee3b46fa08afc36e8dadb76a12df6486.json | Get migration path from parent | src/Illuminate/Database/Console/Migrations/StatusCommand.php | @@ -76,7 +76,7 @@ public function fire()
*/
protected function getAllMigrationFiles()
{
- return $this->migrator->getMigrationFiles($this->laravel['path.database'].'/migrations');
+ return $this->migrator->getMigrationFiles($this->getMigrationPath());
}
} | false |
Other | laravel | framework | d51fb166aa48feaf1cd6eaaddd265f11f3f7d092.json | Remove constructor ... move to app. | src/Illuminate/Foundation/Auth/ResetsPasswords.php | @@ -21,21 +21,6 @@ trait ResetsPasswords {
*/
protected $passwords;
- /**
- * Create a new password controller instance.
- *
- * @param Guard $auth
- * @param PasswordBroker $passwords
- * @return void
- */
- public function __construct(Guard $auth, PasswordBroker $passwords)
- {
- $this->auth = $auth... | false |
Other | laravel | framework | beb0a182178c953a295e3b566e0983c1fbc8ca99.json | Update flysystem references. | composer.json | @@ -71,6 +71,8 @@
"require-dev": {
"aws/aws-sdk-php": "~2.7",
"iron-io/iron_mq": "~1.5",
+ "league/flysystem-aws-s3-v2": "~1.0",
+ "league/flysystem-rackspace": "~1.0",
"pda/pheanstalk": "~3.0",
"mockery/mockery": "~0.9",
"phpunit/phpunit": "~4.0" | true |
Other | laravel | framework | beb0a182178c953a295e3b566e0983c1fbc8ca99.json | Update flysystem references. | src/Illuminate/Filesystem/FilesystemManager.php | @@ -5,9 +5,9 @@
use OpenCloud\Rackspace;
use League\Flysystem\FilesystemInterface;
use League\Flysystem\Filesystem as Flysystem;
-use League\Flysystem\Adapter\AwsS3 as S3Adapter;
+use League\Flysystem\Rackspace\RackspaceAdapter;
use League\Flysystem\Adapter\Local as LocalAdapter;
-use League\Flysystem\Adapter\Racks... | true |
Other | laravel | framework | 9003836c20d18b930b6cb9225a78241b3ba22eb9.json | Remove unneeded stub class. | tests/Database/DatabaseMigrationMakeCommandTest.php | @@ -12,7 +12,7 @@ public function tearDown()
public function testBasicCreateDumpsAutoload()
{
- $command = new DatabaseMigrationMakeCommandTestStub(
+ $command = new MigrateMakeCommand(
$creator = m::mock('Illuminate\Database\Migrations\MigrationCreator'),
$composer = m::mock('Illuminate\Foundation\Comp... | false |
Other | laravel | framework | e83cd52f8c99e147c677a715662b1d5fd93052c4.json | Fix return type. | src/Illuminate/Console/Scheduling/CallbackEvent.php | @@ -43,7 +43,7 @@ public function __construct($callback, array $parameters = array())
* Run the given event.
*
* @param \Illuminate\Contracts\Container\Container $container
- * @return void
+ * @return mixed
*/
public function run(Container $container)
{ | false |
Other | laravel | framework | 735781170381b8a3d07e89961ab83b8394dc444f.json | Fix types in console classes. | src/Illuminate/Console/Application.php | @@ -14,7 +14,7 @@ class Application extends SymfonyApplication implements ApplicationContract {
/**
* The Laravel application instance.
*
- * @var \Illuminate\Foundation\Application
+ * @var \Illuminate\Contracts\Foundation\Application
*/
protected $laravel;
| true |
Other | laravel | framework | 735781170381b8a3d07e89961ab83b8394dc444f.json | Fix types in console classes. | src/Illuminate/Console/Command.php | @@ -8,13 +8,14 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\Question\ConfirmationQuestion;
+use Illuminate\Contracts\Foundation\Application as LaravelApplication;
class Command extends \Symfony\Component\Console\Comma... | true |
Other | laravel | framework | 08bc627c6772b210263236c28be589af25e1f364.json | add getMorphType method in MorphTo | src/Illuminate/Database/Eloquent/Relations/MorphTo.php | @@ -194,6 +194,16 @@ public function createModelByType($type)
return new $type;
}
+ /**
+ * Get the foreign key "type" name.
+ *
+ * @return string
+ */
+ public function getMorphType()
+ {
+ return $this->morphType;
+ }
+
/**
* Get the dictionary used by the relationship.
* | false |
Other | laravel | framework | 5b0bc6cc0218c0035466a66be75ab51098fa163c.json | Add a test for overriding raw tags | tests/View/ViewBladeCompilerTest.php | @@ -169,6 +169,17 @@ public function testReversedEchosAreCompiled()
}
+ public function testShortRawEchosAreCompiled()
+ {
+ $compiler = new BladeCompiler($this->getFiles(), __DIR__);
+ $compiler->setRawTags('{{', '}}');
+ $this->assertEquals('<?php echo $name; ?>', $compiler->compileString('{{$name}}'));
+ $... | false |
Other | laravel | framework | 910d49bbbc73d7fc28625966134f9387853800ad.json | Fix wording on Filesystem disk() phpdocs | src/Illuminate/Filesystem/FilesystemManager.php | @@ -37,7 +37,7 @@ public function __construct($app)
}
/**
- * Get an OAuth provider implementation.
+ * Get a filesystem instance.
*
* @param string $name
* @return \Illuminate\Contracts\Filesystem\Filesystem | false |
Other | laravel | framework | 9c04ced0e76310b0913a8c0212cbdcb407e59824.json | Fix unintentional hardcoded name in useSyslog | src/Illuminate/Log/Writer.php | @@ -241,7 +241,7 @@ public function useDailyFiles($path, $days = 0, $level = 'debug')
*/
public function useSyslog($name = 'laravel', $level = 'debug')
{
- return $this->monolog->pushHandler(new SyslogHandler('laravel', LOG_USER, $level));
+ return $this->monolog->pushHandler(new SyslogHandler($name, LOG_USER,... | false |
Other | laravel | framework | 6c150a23209a06329dc82b5e70060170f0874ac0.json | Update some docblocks | src/Illuminate/Cookie/Guard.php | @@ -126,7 +126,7 @@ protected function encrypt(Response $response)
/**
* Duplicate a cookie with a new value.
*
- * @param \Symfony\Component\HttpFoundation\Cookie $cookie
+ * @param \Symfony\Component\HttpFoundation\Cookie $c
* @param mixed $value
* @return \Symfony\Component\HttpFoundation\Cooki... | true |
Other | laravel | framework | 6c150a23209a06329dc82b5e70060170f0874ac0.json | Update some docblocks | src/Illuminate/Database/Eloquent/Model.php | @@ -1288,6 +1288,7 @@ public function getObservableEvents()
/**
* Set the observable event names.
*
+ * @param array $observables
* @return void
*/
public function setObservableEvents(array $observables)
@@ -1923,6 +1924,7 @@ public function getKeyName()
/**
* Set the primary key for the model.
... | true |
Other | laravel | framework | 6c150a23209a06329dc82b5e70060170f0874ac0.json | Update some docblocks | src/Illuminate/Database/Schema/Blueprint.php | @@ -661,6 +661,7 @@ public function binary($column)
* Add the proper columns for a polymorphic table.
*
* @param string $name
+ * @param string|null $indexName
* @return void
*/
public function morphs($name, $indexName = null) | true |
Other | laravel | framework | 6c150a23209a06329dc82b5e70060170f0874ac0.json | Update some docblocks | src/Illuminate/Foundation/Console/RoutesCommand.php | @@ -94,7 +94,6 @@ protected function getRoutes()
/**
* Get the route information for a given route.
*
- * @param string $name
* @param \Illuminate\Routing\Route $route
* @return array
*/ | true |
Other | laravel | framework | 6c150a23209a06329dc82b5e70060170f0874ac0.json | Update some docblocks | src/Illuminate/Html/FormBuilder.php | @@ -392,7 +392,8 @@ protected function setQuickTextAreaSize($options)
* Create a number input field.
*
* @param string $name
- * @param array $options
+ * @param string|null $value
+ * @param array $options
* @return string
*/
public function number($name, $value = null, $options = array()) | true |
Other | laravel | framework | e6e1635b2861cd84e41186fbb4bf95a29da5e290.json | Add method to get Flysystem driver. | src/Illuminate/Filesystem/FilesystemAdapter.php | @@ -302,4 +302,14 @@ protected function parseVisibility($visibility)
throw new InvalidArgumentException('Unknown visibility: '.$visibility);
}
+ /**
+ * Get the Flysystem driver.
+ *
+ * @return \League\Flysystem\FilesystemInterface
+ */
+ protected function getDriver()
+ {
+ return $this->driver;
+ }
+
} | false |
Other | laravel | framework | 3264ebd87c64353bcaaf01e3cd2be2a91271df59.json | Add resources method to router. | src/Illuminate/Routing/Router.php | @@ -299,6 +299,20 @@ protected function addFallthroughRoute($controller, $uri)
$missing->where('_missing', '(.*)');
}
+ /**
+ * Register an array of resource controllers.
+ *
+ * @param array $resources
+ * @return void
+ */
+ public function resources(array $resources)
+ {
+ foreach ($resources as $name... | false |
Other | laravel | framework | 5af31ee766de486162fe3e56c96ecaba3197996b.json | Add an event helper. | src/Illuminate/Foundation/helpers.php | @@ -572,6 +572,22 @@ function env($key, $default = null)
}
}
+if ( ! function_exists('event'))
+{
+ /**
+ * Fire an event and call the listeners.
+ *
+ * @param string $event
+ * @param mixed $payload
+ * @param bool $halt
+ * @return array|null
+ */
+ function event($event, $payload = array(), $ha... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.