├── src
└── Illuminate
│ ├── Contracts
│ ├── Bus
│ │ ├── SelfHandling.php
│ │ ├── QueueingDispatcher.php
│ │ └── HandlerResolver.php
│ ├── Queue
│ │ ├── ShouldQueue.php
│ │ ├── ShouldBeQueued.php
│ │ ├── QueueableEntity.php
│ │ ├── Factory.php
│ │ ├── EntityResolver.php
│ │ ├── EntityNotFoundException.php
│ │ ├── Monitor.php
│ │ └── Job.php
│ ├── Filesystem
│ │ ├── Cloud.php
│ │ ├── FileNotFoundException.php
│ │ └── Factory.php
│ ├── Broadcasting
│ │ ├── ShouldBroadcastNow.php
│ │ ├── ShouldBroadcast.php
│ │ ├── Factory.php
│ │ └── Broadcaster.php
│ ├── Encryption
│ │ ├── DecryptException.php
│ │ ├── EncryptException.php
│ │ └── Encrypter.php
│ ├── Validation
│ │ ├── UnauthorizedException.php
│ │ ├── ValidatesWhenResolved.php
│ │ ├── Validator.php
│ │ ├── ValidationException.php
│ │ └── Factory.php
│ ├── Support
│ │ ├── Arrayable.php
│ │ ├── Htmlable.php
│ │ ├── Renderable.php
│ │ ├── Jsonable.php
│ │ └── MessageProvider.php
│ ├── Container
│ │ ├── BindingResolutionException.php
│ │ └── ContextualBindingBuilder.php
│ ├── Cache
│ │ └── Factory.php
│ ├── Auth
│ │ ├── CanResetPassword.php
│ │ ├── Access
│ │ │ ├── Authorizable.php
│ │ │ └── Gate.php
│ │ ├── Registrar.php
│ │ └── Authenticatable.php
│ ├── Pipeline
│ │ ├── Hub.php
│ │ └── Pipeline.php
│ ├── Redis
│ │ └── Database.php
│ ├── Routing
│ │ ├── UrlRoutable.php
│ │ ├── Middleware.php
│ │ └── TerminableMiddleware.php
│ ├── Pagination
│ │ ├── Presenter.php
│ │ └── LengthAwarePaginator.php
│ ├── Console
│ │ ├── Application.php
│ │ └── Kernel.php
│ ├── View
│ │ └── View.php
│ ├── Cookie
│ │ ├── QueueingFactory.php
│ │ └── Factory.php
│ ├── Database
│ │ └── ModelIdentifier.php
│ ├── Mail
│ │ ├── Mailer.php
│ │ └── MailQueue.php
│ ├── composer.json
│ ├── Debug
│ │ └── ExceptionHandler.php
│ ├── Hashing
│ │ └── Hasher.php
│ └── Http
│ │ └── Kernel.php
│ ├── Session
│ ├── TokenMismatchException.php
│ ├── ExistenceAwareInterface.php
│ ├── Console
│ │ └── stubs
│ │ │ └── database.stub
│ ├── SessionInterface.php
│ ├── CommandsServiceProvider.php
│ └── composer.json
│ ├── Auth
│ ├── Access
│ │ ├── UnauthorizedException.php
│ │ ├── HandlesAuthorization.php
│ │ └── Response.php
│ ├── Passwords
│ │ ├── CanResetPassword.php
│ │ └── TokenRepositoryInterface.php
│ ├── Console
│ │ └── ClearResetsCommand.php
│ ├── Middleware
│ │ └── AuthenticateWithBasicAuth.php
│ ├── composer.json
│ └── Authenticatable.php
│ ├── Foundation
│ ├── Console
│ │ ├── stubs
│ │ │ ├── model.stub
│ │ │ ├── command-with-handler.stub
│ │ │ ├── policy.stub
│ │ │ ├── test.stub
│ │ │ ├── provider.stub
│ │ │ ├── routes.stub
│ │ │ ├── job.stub
│ │ │ ├── command-queued-with-handler.stub
│ │ │ ├── command.stub
│ │ │ ├── command-handler.stub
│ │ │ ├── listener.stub
│ │ │ ├── event-handler.stub
│ │ │ ├── request.stub
│ │ │ ├── event.stub
│ │ │ ├── listener-queued.stub
│ │ │ ├── event-handler-queued.stub
│ │ │ ├── job-queued.stub
│ │ │ ├── command-queued.stub
│ │ │ └── console.stub
│ │ ├── UpCommand.php
│ │ ├── EnvironmentCommand.php
│ │ ├── DownCommand.php
│ │ ├── QueuedJob.php
│ │ ├── ClearCompiledCommand.php
│ │ ├── PolicyMakeCommand.php
│ │ ├── RequestMakeCommand.php
│ │ ├── ProviderMakeCommand.php
│ │ ├── RouteClearCommand.php
│ │ └── ConfigClearCommand.php
│ ├── Bus
│ │ ├── DispatchesCommands.php
│ │ └── DispatchesJobs.php
│ ├── Testing
│ │ ├── HttpException.php
│ │ ├── DatabaseMigrations.php
│ │ ├── DatabaseTransactions.php
│ │ ├── WithoutEvents.php
│ │ └── WithoutMiddleware.php
│ ├── Auth
│ │ ├── AuthenticatesAndRegistersUsers.php
│ │ ├── RedirectsUsers.php
│ │ ├── RegistersUsers.php
│ │ └── Access
│ │ │ └── Authorizable.php
│ ├── Providers
│ │ ├── FoundationServiceProvider.php
│ │ ├── ComposerServiceProvider.php
│ │ └── ConsoleSupportServiceProvider.php
│ ├── Bootstrap
│ │ ├── BootProviders.php
│ │ ├── RegisterProviders.php
│ │ ├── SetRequestForConsole.php
│ │ ├── RegisterFacades.php
│ │ └── DetectEnvironment.php
│ ├── Support
│ │ └── Providers
│ │ │ └── AuthServiceProvider.php
│ ├── Inspiring.php
│ └── Http
│ │ └── Middleware
│ │ └── CheckForMaintenanceMode.php
│ ├── Http
│ ├── Exception
│ │ ├── PostTooLargeException.php
│ │ └── HttpResponseException.php
│ ├── Middleware
│ │ └── FrameGuard.php
│ ├── composer.json
│ └── ResponseTrait.php
│ ├── Database
│ ├── Eloquent
│ │ ├── MassAssignmentException.php
│ │ ├── QueueEntityResolver.php
│ │ ├── ScopeInterface.php
│ │ ├── ModelNotFoundException.php
│ │ └── Relations
│ │ │ ├── HasOne.php
│ │ │ ├── MorphOne.php
│ │ │ ├── HasMany.php
│ │ │ └── MorphMany.php
│ ├── Console
│ │ ├── Seeds
│ │ │ └── stubs
│ │ │ │ └── seeder.stub
│ │ └── Migrations
│ │ │ └── BaseCommand.php
│ ├── Connectors
│ │ └── ConnectorInterface.php
│ ├── Migrations
│ │ ├── Migration.php
│ │ └── stubs
│ │ │ ├── blank.stub
│ │ │ ├── create.stub
│ │ │ └── update.stub
│ ├── Query
│ │ ├── Processors
│ │ │ ├── SQLiteProcessor.php
│ │ │ ├── MySqlProcessor.php
│ │ │ ├── SqlServerProcessor.php
│ │ │ ├── PostgresProcessor.php
│ │ │ └── Processor.php
│ │ └── Expression.php
│ ├── ConnectionResolverInterface.php
│ ├── DetectsLostConnections.php
│ └── Schema
│ │ └── MySqlBuilder.php
│ ├── Routing
│ ├── Console
│ │ ├── stubs
│ │ │ ├── controller.plain.stub
│ │ │ └── middleware.stub
│ │ └── MiddlewareMakeCommand.php
│ ├── Matching
│ │ ├── ValidatorInterface.php
│ │ ├── MethodValidator.php
│ │ ├── UriValidator.php
│ │ ├── HostValidator.php
│ │ └── SchemeValidator.php
│ ├── ControllerServiceProvider.php
│ └── composer.json
│ ├── Container
│ ├── BindingResolutionException.php
│ └── composer.json
│ ├── Queue
│ ├── Connectors
│ │ ├── ConnectorInterface.php
│ │ ├── NullConnector.php
│ │ ├── SyncConnector.php
│ │ ├── BeanstalkdConnector.php
│ │ ├── SqsConnector.php
│ │ └── DatabaseConnector.php
│ ├── Console
│ │ ├── FlushFailedCommand.php
│ │ ├── RestartCommand.php
│ │ ├── stubs
│ │ │ ├── failed_jobs.stub
│ │ │ └── jobs.stub
│ │ └── ForgetFailedCommand.php
│ ├── IlluminateQueueClosure.php
│ ├── Failed
│ │ ├── FailedJobProviderInterface.php
│ │ └── NullFailedJobProvider.php
│ └── README.md
│ ├── View
│ ├── Engines
│ │ ├── EngineInterface.php
│ │ └── Engine.php
│ ├── Compilers
│ │ └── CompilerInterface.php
│ ├── Expression.php
│ ├── composer.json
│ └── ViewFinderInterface.php
│ ├── Support
│ ├── Facades
│ │ ├── Log.php
│ │ ├── Mail.php
│ │ ├── View.php
│ │ ├── App.php
│ │ ├── Redis.php
│ │ ├── Route.php
│ │ ├── URL.php
│ │ ├── Config.php
│ │ ├── Event.php
│ │ ├── File.php
│ │ ├── Hash.php
│ │ ├── Request.php
│ │ ├── Crypt.php
│ │ ├── Lang.php
│ │ ├── Redirect.php
│ │ ├── Validator.php
│ │ ├── Storage.php
│ │ ├── Auth.php
│ │ ├── Bus.php
│ │ ├── Gate.php
│ │ ├── Queue.php
│ │ ├── Artisan.php
│ │ ├── Cache.php
│ │ ├── DB.php
│ │ ├── Session.php
│ │ ├── Response.php
│ │ ├── Blade.php
│ │ ├── Input.php
│ │ ├── Schema.php
│ │ ├── Cookie.php
│ │ └── Password.php
│ ├── Debug
│ │ ├── Dumper.php
│ │ └── HtmlDumper.php
│ ├── HtmlString.php
│ ├── AggregateServiceProvider.php
│ └── composer.json
│ ├── Console
│ ├── AppNamespaceDetectorTrait.php
│ ├── ScheduleServiceProvider.php
│ └── composer.json
│ ├── Cookie
│ ├── CookieServiceProvider.php
│ ├── composer.json
│ └── Middleware
│ │ └── AddQueuedCookiesToResponse.php
│ ├── Events
│ ├── EventServiceProvider.php
│ └── composer.json
│ ├── Bus
│ ├── MarshalException.php
│ ├── Queueable.php
│ ├── composer.json
│ └── BusServiceProvider.php
│ ├── Translation
│ ├── LoaderInterface.php
│ └── composer.json
│ ├── Pagination
│ ├── PaginationServiceProvider.php
│ ├── composer.json
│ └── SimpleBootstrapThreePresenter.php
│ ├── Cache
│ ├── Console
│ │ └── stubs
│ │ │ └── cache.stub
│ ├── TaggableStore.php
│ └── composer.json
│ ├── Hashing
│ ├── HashServiceProvider.php
│ └── composer.json
│ ├── Broadcasting
│ ├── Broadcasters
│ │ ├── PusherBroadcaster.php
│ │ └── LogBroadcaster.php
│ └── composer.json
│ ├── Redis
│ ├── RedisServiceProvider.php
│ └── composer.json
│ ├── Pipeline
│ ├── PipelineServiceProvider.php
│ └── composer.json
│ ├── Log
│ └── composer.json
│ ├── Config
│ └── composer.json
│ ├── Validation
│ ├── PresenceVerifierInterface.php
│ └── composer.json
│ ├── Encryption
│ ├── EncryptionServiceProvider.php
│ └── composer.json
│ ├── Mail
│ ├── Transport
│ │ └── SesTransport.php
│ └── composer.json
│ └── Filesystem
│ └── composer.json
├── CONTRIBUTING.md
└── LICENSE.txt
/src/Illuminate/Contracts/Bus/SelfHandling.php:
--------------------------------------------------------------------------------
1 | email;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/command-with-handler.stub:
--------------------------------------------------------------------------------
1 | getNamespace();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/Facades/Crypt.php:
--------------------------------------------------------------------------------
1 | artisan('migrate');
13 |
14 | $this->beforeApplicationDestroyed(function () {
15 | $this->artisan('migrate:rollback');
16 | });
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/Facades/Auth.php:
--------------------------------------------------------------------------------
1 | laravel->databasePath().'/migrations';
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Testing/DatabaseTransactions.php:
--------------------------------------------------------------------------------
1 | app->make('db')->beginTransaction();
13 |
14 | $this->beforeApplicationDestroyed(function () {
15 | $this->app->make('db')->rollBack();
16 | });
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Pagination/Presenter.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Providers/FoundationServiceProvider.php:
--------------------------------------------------------------------------------
1 | boot();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/Facades/Blade.php:
--------------------------------------------------------------------------------
1 | getEngineResolver()->resolve('blade')->getCompiler();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/Illuminate/View/Engines/Engine.php:
--------------------------------------------------------------------------------
1 | lastRendered;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Encryption/Encrypter.php:
--------------------------------------------------------------------------------
1 | connection;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:
--------------------------------------------------------------------------------
1 | registerConfiguredProviders();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Testing/WithoutEvents.php:
--------------------------------------------------------------------------------
1 | withoutEvents();
16 | } else {
17 | throw new Exception('Unable to disable middleware. ApplicationTrait not used.');
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Illuminate/Routing/Matching/ValidatorInterface.php:
--------------------------------------------------------------------------------
1 | redirectPath;
16 | }
17 |
18 | return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Testing/WithoutMiddleware.php:
--------------------------------------------------------------------------------
1 | withoutMiddleware();
16 | } else {
17 | throw new Exception('Unable to disable middleware. CrawlerTrait not used.');
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Console/Application.php:
--------------------------------------------------------------------------------
1 | app->singleton('illuminate.route.dispatcher', function ($app) {
17 | return new ControllerDispatcher($app['router'], $app);
18 | });
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Routing/TerminableMiddleware.php:
--------------------------------------------------------------------------------
1 | dump((new VarCloner)->cloneVar($value));
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/routes.stub:
--------------------------------------------------------------------------------
1 | setRoutes(
15 | unserialize(base64_decode('{{routes}}'))
16 | );
17 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/job.stub:
--------------------------------------------------------------------------------
1 | name;
19 | };
20 |
21 | return array_map($mapping, $results);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Query/Processors/MySqlProcessor.php:
--------------------------------------------------------------------------------
1 | column_name;
19 | };
20 |
21 | return array_map($mapping, $results);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Illuminate/Cookie/CookieServiceProvider.php:
--------------------------------------------------------------------------------
1 | app->singleton('cookie', function ($app) {
17 | $config = $app['config']['session'];
18 |
19 | return (new CookieJar)->setDefaultPathAndDomain($config['path'], $config['domain']);
20 | });
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/command-queued-with-handler.stub:
--------------------------------------------------------------------------------
1 | headers->set('X-Frame-Options', 'SAMEORIGIN', false);
21 |
22 | return $response;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Auth/Registrar.php:
--------------------------------------------------------------------------------
1 | app->singleton('events', function ($app) {
17 | return (new Dispatcher($app))->setQueueResolver(function () use ($app) {
18 | return $app->make('Illuminate\Contracts\Queue\Factory');
19 | });
20 | });
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Illuminate/Bus/MarshalException.php:
--------------------------------------------------------------------------------
1 | name}] to command [{$command}]");
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Illuminate/Routing/Matching/MethodValidator.php:
--------------------------------------------------------------------------------
1 | getMethod(), $route->methods());
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/listener.stub:
--------------------------------------------------------------------------------
1 | make('config')->get('app.url', 'http://localhost');
19 |
20 | $app->instance('request', Request::create($url, 'GET', [], [], [], $_SERVER));
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Illuminate/Pagination/PaginationServiceProvider.php:
--------------------------------------------------------------------------------
1 | app['request']->url();
18 | });
19 |
20 | Paginator::currentPageResolver(function ($pageName = 'page') {
21 | return $this->app['request']->input($pageName);
22 | });
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Cookie/QueueingFactory.php:
--------------------------------------------------------------------------------
1 | id = $id;
31 | $this->class = $class;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/event.stub:
--------------------------------------------------------------------------------
1 | increments('id');
17 | $table->timestamps();
18 | });
19 | }
20 |
21 | /**
22 | * Reverse the migrations.
23 | *
24 | * @return void
25 | */
26 | public function down()
27 | {
28 | Schema::drop('DummyTable');
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/listener-queued.stub:
--------------------------------------------------------------------------------
1 | path() == '/' ? '/' : '/'.$request->path();
20 |
21 | return preg_match($route->getCompiled()->getRegex(), rawurldecode($path));
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Illuminate/View/Compilers/CompilerInterface.php:
--------------------------------------------------------------------------------
1 | make('config')->get('app.aliases'))->register();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/Illuminate/Cache/Console/stubs/cache.stub:
--------------------------------------------------------------------------------
1 | string('key')->unique();
17 | $table->text('value');
18 | $table->integer('expiration');
19 | });
20 | }
21 |
22 | /**
23 | * Reverse the migrations.
24 | *
25 | * @return void
26 | */
27 | public function down()
28 | {
29 | Schema::drop('cache');
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/Illuminate/Routing/Matching/HostValidator.php:
--------------------------------------------------------------------------------
1 | getCompiled()->getHostRegex())) {
20 | return true;
21 | }
22 |
23 | return preg_match($route->getCompiled()->getHostRegex(), $request->getHost());
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Eloquent/QueueEntityResolver.php:
--------------------------------------------------------------------------------
1 | find($id);
20 |
21 | if ($instance) {
22 | return $instance;
23 | }
24 |
25 | throw new EntityNotFoundException($type, $id);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/DetectsLostConnections.php:
--------------------------------------------------------------------------------
1 | getMessage();
19 |
20 | return Str::contains($message, [
21 | 'server has gone away',
22 | 'no connection to the server',
23 | 'Lost connection',
24 | 'is dead or not enabled',
25 | 'Error while sending',
26 | ]);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Illuminate/Routing/Matching/SchemeValidator.php:
--------------------------------------------------------------------------------
1 | httpOnly()) {
20 | return ! $request->secure();
21 | } elseif ($route->secure()) {
22 | return $request->secure();
23 | }
24 |
25 | return true;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/Illuminate/Session/Console/stubs/database.stub:
--------------------------------------------------------------------------------
1 | string('id')->unique();
17 | $table->text('payload');
18 | $table->integer('last_activity');
19 | });
20 | }
21 |
22 | /**
23 | * Reverse the migrations.
24 | *
25 | * @return void
26 | */
27 | public function down()
28 | {
29 | Schema::drop('sessions');
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Eloquent/ScopeInterface.php:
--------------------------------------------------------------------------------
1 | laravel->storagePath().'/framework/down');
31 |
32 | $this->info('Application is now live.');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/Console/FlushFailedCommand.php:
--------------------------------------------------------------------------------
1 | laravel['queue.failer']->flush();
31 |
32 | $this->info('All failed jobs deleted successfully!');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/Illuminate/Cache/TaggableStore.php:
--------------------------------------------------------------------------------
1 | tags($name);
18 | }
19 |
20 | /**
21 | * Begin executing a new tags operation.
22 | *
23 | * @param array|mixed $names
24 | * @return \Illuminate\Cache\TaggedCache
25 | */
26 | public function tags($names)
27 | {
28 | return new TaggedCache($this, new TagSet($this, is_array($names) ? $names : func_get_args()));
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Mail/Mailer.php:
--------------------------------------------------------------------------------
1 | line('Current application environment: '.$this->laravel['env'].'');
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/Illuminate/Auth/Console/ClearResetsCommand.php:
--------------------------------------------------------------------------------
1 | laravel['auth.password.tokens']->deleteExpired();
31 |
32 | $this->info('Expired reset tokens cleared!');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/DownCommand.php:
--------------------------------------------------------------------------------
1 | laravel->storagePath().'/framework/down');
31 |
32 | $this->comment('Application is now in maintenance mode.');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/Illuminate/Hashing/HashServiceProvider.php:
--------------------------------------------------------------------------------
1 | app->singleton('hash', function () { return new BcryptHasher; });
24 | }
25 |
26 | /**
27 | * Get the services provided by the provider.
28 | *
29 | * @return array
30 | */
31 | public function provides()
32 | {
33 | return ['hash'];
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Bootstrap/DetectEnvironment.php:
--------------------------------------------------------------------------------
1 | environmentPath(), $app->environmentFile());
21 | } catch (InvalidArgumentException $e) {
22 | //
23 | }
24 |
25 | $app->detectEnvironment(function () {
26 | return env('APP_ENV', 'production');
27 | });
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/command-queued.stub:
--------------------------------------------------------------------------------
1 | input($key, $default);
22 | }
23 |
24 | /**
25 | * Get the registered name of the component.
26 | *
27 | * @return string
28 | */
29 | protected static function getFacadeAccessor()
30 | {
31 | return 'request';
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/Connectors/BeanstalkdConnector.php:
--------------------------------------------------------------------------------
1 | laravel['cache']->forever('illuminate:queue:restart', time());
31 |
32 | $this->info('Broadcasting queue restart signal.');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/Facades/Schema.php:
--------------------------------------------------------------------------------
1 | connection($name)->getSchemaBuilder();
19 | }
20 |
21 | /**
22 | * Get a schema builder instance for the default connection.
23 | *
24 | * @return \Illuminate\Database\Schema\Builder
25 | */
26 | protected static function getFacadeAccessor()
27 | {
28 | return static::$app['db']->connection()->getSchemaBuilder();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/contracts",
3 | "description": "The Illuminate Contracts package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9"
18 | },
19 | "autoload": {
20 | "psr-4": {
21 | "Illuminate\\Contracts\\": ""
22 | }
23 | },
24 | "extra": {
25 | "branch-alias": {
26 | "dev-master": "5.1-dev"
27 | }
28 | },
29 | "minimum-stability": "dev"
30 | }
31 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/Console/stubs/failed_jobs.stub:
--------------------------------------------------------------------------------
1 | increments('id');
17 | $table->text('connection');
18 | $table->text('queue');
19 | $table->longText('payload');
20 | $table->timestamp('failed_at');
21 | });
22 | }
23 |
24 | /**
25 | * Reverse the migrations.
26 | *
27 | * @return void
28 | */
29 | public function down()
30 | {
31 | Schema::drop('{{table}}');
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php:
--------------------------------------------------------------------------------
1 | pusher = $pusher;
26 | }
27 |
28 | /**
29 | * {@inheritdoc}
30 | */
31 | public function broadcast(array $channels, $event, array $payload = [])
32 | {
33 | $this->pusher->trigger($channels, $event, $payload);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/Connectors/SqsConnector.php:
--------------------------------------------------------------------------------
1 | 'latest', 'http' => ['connect_timeout' => 60],
21 | ], $config);
22 |
23 | if ($config['key'] && $config['secret']) {
24 | $config['credentials'] = Arr::only($config, ['key', 'secret']);
25 | }
26 |
27 | return new SqsQueue(new SqsClient($config), $config['queue']);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Mail/MailQueue.php:
--------------------------------------------------------------------------------
1 | app->singleton('redis', function ($app) {
24 | return new Database($app['config']['database.redis']);
25 | });
26 | }
27 |
28 | /**
29 | * Get the services provided by the provider.
30 | *
31 | * @return array
32 | */
33 | public function provides()
34 | {
35 | return ['redis'];
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/Illuminate/Console/ScheduleServiceProvider.php:
--------------------------------------------------------------------------------
1 | commands('Illuminate\Console\Scheduling\ScheduleRunCommand');
24 | }
25 |
26 | /**
27 | * Get the services provided by the provider.
28 | *
29 | * @return array
30 | */
31 | public function provides()
32 | {
33 | return [
34 | 'Illuminate\Console\Scheduling\ScheduleRunCommand',
35 | ];
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/Illuminate/Session/SessionInterface.php:
--------------------------------------------------------------------------------
1 | message = $message;
22 | }
23 |
24 | /**
25 | * Get the response message.
26 | *
27 | * @return string|null
28 | */
29 | public function message()
30 | {
31 | return $this->message;
32 | }
33 |
34 | /**
35 | * Get the string representation of the message.
36 | *
37 | * @return string
38 | */
39 | public function __toString()
40 | {
41 | return $this->message();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/Illuminate/Container/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/container",
3 | "description": "The Illuminate Container package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*"
19 | },
20 | "autoload": {
21 | "psr-4": {
22 | "Illuminate\\Container\\": ""
23 | }
24 | },
25 | "extra": {
26 | "branch-alias": {
27 | "dev-master": "5.1-dev"
28 | }
29 | },
30 | "minimum-stability": "dev"
31 | }
32 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/stubs/console.stub:
--------------------------------------------------------------------------------
1 | model = $model;
25 |
26 | $this->message = "No query results for model [{$model}].";
27 |
28 | return $this;
29 | }
30 |
31 | /**
32 | * Get the affected Eloquent model.
33 | *
34 | * @return string
35 | */
36 | public function getModel()
37 | {
38 | return $this->model;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Query/Expression.php:
--------------------------------------------------------------------------------
1 | value = $value;
23 | }
24 |
25 | /**
26 | * Get the value of the expression.
27 | *
28 | * @return mixed
29 | */
30 | public function getValue()
31 | {
32 | return $this->value;
33 | }
34 |
35 | /**
36 | * Get the value of the expression.
37 | *
38 | * @return string
39 | */
40 | public function __toString()
41 | {
42 | return (string) $this->getValue();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Illuminate/Pipeline/PipelineServiceProvider.php:
--------------------------------------------------------------------------------
1 | app->singleton(
24 | 'Illuminate\Contracts\Pipeline\Hub', 'Illuminate\Pipeline\Hub'
25 | );
26 | }
27 |
28 | /**
29 | * Get the services provided by the provider.
30 | *
31 | * @return array
32 | */
33 | public function provides()
34 | {
35 | return [
36 | 'Illuminate\Contracts\Pipeline\Hub',
37 | ];
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/Illuminate/Hashing/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/hashing",
3 | "description": "The Illuminate Hashing package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*"
20 | },
21 | "autoload": {
22 | "psr-4": {
23 | "Illuminate\\Hashing\\": ""
24 | }
25 | },
26 | "extra": {
27 | "branch-alias": {
28 | "dev-master": "5.1-dev"
29 | }
30 | },
31 | "minimum-stability": "dev"
32 | }
33 |
--------------------------------------------------------------------------------
/src/Illuminate/View/Expression.php:
--------------------------------------------------------------------------------
1 | html = $html;
25 | }
26 |
27 | /**
28 | * Get the the HTML string.
29 | *
30 | * @return string
31 | */
32 | public function toHtml()
33 | {
34 | return $this->html;
35 | }
36 |
37 | /**
38 | * Get the the HTML string.
39 | *
40 | * @return string
41 | */
42 | public function __toString()
43 | {
44 | return $this->toHtml();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Illuminate/Pipeline/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/pipeline",
3 | "description": "The Illuminate Pipeline package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*"
20 | },
21 | "autoload": {
22 | "psr-4": {
23 | "Illuminate\\Pipeline\\": ""
24 | }
25 | },
26 | "extra": {
27 | "branch-alias": {
28 | "dev-master": "5.1-dev"
29 | }
30 | },
31 | "minimum-stability": "dev"
32 | }
33 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/HtmlString.php:
--------------------------------------------------------------------------------
1 | html = $html;
25 | }
26 |
27 | /**
28 | * Get the the HTML string.
29 | *
30 | * @return string
31 | */
32 | public function toHtml()
33 | {
34 | return $this->html;
35 | }
36 |
37 | /**
38 | * Get the the HTML string.
39 | *
40 | * @return string
41 | */
42 | public function __toString()
43 | {
44 | return $this->toHtml();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Debug/ExceptionHandler.php:
--------------------------------------------------------------------------------
1 | =5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*"
20 | },
21 | "autoload": {
22 | "psr-4": {
23 | "Illuminate\\Pagination\\": ""
24 | }
25 | },
26 | "extra": {
27 | "branch-alias": {
28 | "dev-master": "5.1-dev"
29 | }
30 | },
31 | "minimum-stability": "dev"
32 | }
33 |
--------------------------------------------------------------------------------
/src/Illuminate/Bus/Queueable.php:
--------------------------------------------------------------------------------
1 | queue = $queue;
30 |
31 | return $this;
32 | }
33 |
34 | /**
35 | * Set the desired delay for the job.
36 | *
37 | * @param int $delay
38 | * @return $this
39 | */
40 | public function delay($delay)
41 | {
42 | $this->delay = $delay;
43 |
44 | return $this;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Hashing/Hasher.php:
--------------------------------------------------------------------------------
1 | app->singleton('composer', function ($app) {
25 | return new Composer($app['files'], $app->basePath());
26 | });
27 | }
28 |
29 | /**
30 | * Get the services provided by the provider.
31 | *
32 | * @return array
33 | */
34 | public function provides()
35 | {
36 | return ['composer'];
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/Illuminate/Log/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/log",
3 | "description": "The Illuminate Log package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "monolog/monolog": "~1.11"
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "Illuminate\\Log\\": ""
25 | }
26 | },
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "5.1-dev"
30 | }
31 | },
32 | "minimum-stability": "dev"
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Bus/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/bus",
3 | "description": "The Illuminate Bus package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/pipeline": "5.1.*",
20 | "illuminate/support": "5.1.*"
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "Illuminate\\Bus\\": ""
25 | }
26 | },
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "5.1-dev"
30 | }
31 | },
32 | "minimum-stability": "dev"
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php:
--------------------------------------------------------------------------------
1 | policies as $key => $value) {
26 | $gate->policy($key, $value);
27 | }
28 | }
29 |
30 | /**
31 | * {@inheritdoc}
32 | */
33 | public function register()
34 | {
35 | //
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/Illuminate/Redis/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/redis",
3 | "description": "The Illuminate Redis package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "predis/predis": "~1.0"
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "Illuminate\\Redis\\": ""
25 | }
26 | },
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "5.1-dev"
30 | }
31 | },
32 | "minimum-stability": "dev"
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Pipeline/Pipeline.php:
--------------------------------------------------------------------------------
1 | auth = $auth;
26 | }
27 |
28 | /**
29 | * Handle an incoming request.
30 | *
31 | * @param \Illuminate\Http\Request $request
32 | * @param \Closure $next
33 | * @return mixed
34 | */
35 | public function handle($request, Closure $next)
36 | {
37 | return $this->auth->basic() ?: $next($request);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/Illuminate/Config/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/config",
3 | "description": "The Illuminate Config package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/filesystem": "5.1.*",
20 | "illuminate/support": "5.1.*"
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "Illuminate\\Config\\": ""
25 | }
26 | },
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "5.1-dev"
30 | }
31 | },
32 | "minimum-stability": "dev"
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Events/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/events",
3 | "description": "The Illuminate Events package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/container": "5.1.*",
19 | "illuminate/contracts": "5.1.*",
20 | "illuminate/support": "5.1.*"
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "Illuminate\\Events\\": ""
25 | }
26 | },
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "5.1-dev"
30 | }
31 | },
32 | "minimum-stability": "dev"
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/QueuedJob.php:
--------------------------------------------------------------------------------
1 | kernel = $kernel;
25 | }
26 |
27 | /**
28 | * Fire the job.
29 | *
30 | * @param \Illuminate\Queue\Jobs\Job $job
31 | * @param array $data
32 | * @return void
33 | */
34 | public function fire($job, $data)
35 | {
36 | call_user_func_array([$this->kernel, 'call'], $data);
37 |
38 | $job->delete();
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/Illuminate/Http/Exception/HttpResponseException.php:
--------------------------------------------------------------------------------
1 | response = $response;
26 | }
27 |
28 | /**
29 | * Get the underlying response instance.
30 | *
31 | * @return \Symfony\Component\HttpFoundation\Response
32 | */
33 | public function getResponse()
34 | {
35 | return $this->response;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/Illuminate/Translation/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/translation",
3 | "description": "The Illuminate Translation package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/filesystem": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "symfony/translation": "2.7.*"
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "Illuminate\\Translation\\": ""
25 | }
26 | },
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "5.1-dev"
30 | }
31 | },
32 | "minimum-stability": "dev"
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/IlluminateQueueClosure.php:
--------------------------------------------------------------------------------
1 | crypt = $crypt;
23 | }
24 |
25 | /**
26 | * Fire the Closure based queue job.
27 | *
28 | * @param \Illuminate\Contracts\Queue\Job $job
29 | * @param array $data
30 | * @return void
31 | */
32 | public function fire($job, $data)
33 | {
34 | $closure = unserialize($this->crypt->decrypt($data['closure']));
35 |
36 | $closure($job);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/Illuminate/Validation/PresenceVerifierInterface.php:
--------------------------------------------------------------------------------
1 | =5.5.9",
18 | "illuminate/session": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "symfony/http-foundation": "2.7.*",
21 | "symfony/http-kernel": "2.7.*"
22 | },
23 | "autoload": {
24 | "psr-4": {
25 | "Illuminate\\Http\\": ""
26 | }
27 | },
28 | "extra": {
29 | "branch-alias": {
30 | "dev-master": "5.1-dev"
31 | }
32 | },
33 | "minimum-stability": "dev"
34 | }
35 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Auth/Authenticatable.php:
--------------------------------------------------------------------------------
1 | =5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "symfony/http-kernel": "2.7.*",
21 | "symfony/http-foundation": "2.7.*"
22 | },
23 | "autoload": {
24 | "psr-4": {
25 | "Illuminate\\Cookie\\": ""
26 | }
27 | },
28 | "extra": {
29 | "branch-alias": {
30 | "dev-master": "5.1-dev"
31 | }
32 | },
33 | "minimum-stability": "dev"
34 | }
35 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Providers/ConsoleSupportServiceProvider.php:
--------------------------------------------------------------------------------
1 | laravel->getCachedCompilePath();
31 | $servicesPath = $this->laravel->getCachedServicesPath();
32 |
33 | if (file_exists($compiledPath)) {
34 | @unlink($compiledPath);
35 | }
36 |
37 | if (file_exists($servicesPath)) {
38 | @unlink($servicesPath);
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/Facades/Cookie.php:
--------------------------------------------------------------------------------
1 | cookie($key, null));
19 | }
20 |
21 | /**
22 | * Retrieve a cookie from the request.
23 | *
24 | * @param string $key
25 | * @param mixed $default
26 | * @return string
27 | */
28 | public static function get($key = null, $default = null)
29 | {
30 | return static::$app['request']->cookie($key, $default);
31 | }
32 |
33 | /**
34 | * Get the registered name of the component.
35 | *
36 | * @return string
37 | */
38 | protected static function getFacadeAccessor()
39 | {
40 | return 'cookie';
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Validation/Validator.php:
--------------------------------------------------------------------------------
1 | app->singleton('command.session.database', function ($app) {
25 | return new SessionTableCommand($app['files'], $app['composer']);
26 | });
27 |
28 | $this->commands('command.session.database');
29 | }
30 |
31 | /**
32 | * Get the services provided by the provider.
33 | *
34 | * @return array
35 | */
36 | public function provides()
37 | {
38 | return ['command.session.database'];
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Queue/Job.php:
--------------------------------------------------------------------------------
1 | =5.5.9",
18 | "illuminate/container": "5.1.*",
19 | "illuminate/contracts": "5.1.*",
20 | "illuminate/events": "5.1.*",
21 | "illuminate/filesystem": "5.1.*",
22 | "illuminate/support": "5.1.*"
23 | },
24 | "autoload": {
25 | "psr-4": {
26 | "Illuminate\\View\\": ""
27 | }
28 | },
29 | "extra": {
30 | "branch-alias": {
31 | "dev-master": "5.1-dev"
32 | }
33 | },
34 | "minimum-stability": "dev"
35 | }
36 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Http/Kernel.php:
--------------------------------------------------------------------------------
1 | app->singleton('encrypter', function ($app) {
18 | $config = $app->make('config')->get('app');
19 |
20 | $key = $config['key'];
21 |
22 | $cipher = $config['cipher'];
23 |
24 | if (Encrypter::supported($key, $cipher)) {
25 | return new Encrypter($key, $cipher);
26 | } elseif (McryptEncrypter::supported($key, $cipher)) {
27 | return new McryptEncrypter($key, $cipher);
28 | } else {
29 | throw new RuntimeException('No supported encrypter found. The cipher and / or key length are invalid.');
30 | }
31 | });
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/Debug/HtmlDumper.php:
--------------------------------------------------------------------------------
1 | 'background-color:#fff; color:#222; line-height:1.2em; font-weight:normal; font:12px Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:100000',
16 | 'num' => 'color:#a71d5d',
17 | 'const' => 'color:#795da3',
18 | 'str' => 'color:#df5000',
19 | 'cchr' => 'color:#222',
20 | 'note' => 'color:#a71d5d',
21 | 'ref' => 'color:#a0a0a0',
22 | 'public' => 'color:#795da3',
23 | 'protected' => 'color:#795da3',
24 | 'private' => 'color:#795da3',
25 | 'meta' => 'color:#b729d9',
26 | 'key' => 'color:#df5000',
27 | 'index' => 'color:#a71d5d',
28 | ];
29 | }
30 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Auth/Access/Gate.php:
--------------------------------------------------------------------------------
1 | ses = $ses;
26 | }
27 |
28 | /**
29 | * {@inheritdoc}
30 | */
31 | public function send(Swift_Mime_Message $message, &$failedRecipients = null)
32 | {
33 | $this->beforeSendPerformed($message);
34 |
35 | return $this->ses->sendRawEmail([
36 | 'Source' => key($message->getSender() ?: $message->getFrom()),
37 | 'RawMessage' => [
38 | 'Data' => (string) $message,
39 | ],
40 | ]);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/Illuminate/Broadcasting/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/broadcasting",
3 | "description": "The Illuminate Broadcasting package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*"
20 | },
21 | "autoload": {
22 | "psr-4": {
23 | "Illuminate\\Broadcasting\\": ""
24 | }
25 | },
26 | "extra": {
27 | "branch-alias": {
28 | "dev-master": "5.1-dev"
29 | }
30 | },
31 | "suggest": {
32 | "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (~2.0)."
33 | },
34 | "minimum-stability": "dev"
35 | }
36 |
--------------------------------------------------------------------------------
/src/Illuminate/Auth/Passwords/TokenRepositoryInterface.php:
--------------------------------------------------------------------------------
1 | logger = $logger;
26 | }
27 |
28 | /**
29 | * {@inheritdoc}
30 | */
31 | public function broadcast(array $channels, $event, array $payload = [])
32 | {
33 | $channels = implode(', ', $channels);
34 |
35 | $payload = json_encode($payload, JSON_PRETTY_PRINT);
36 |
37 | $this->logger->info('Broadcasting ['.$event.'] on channels ['.$channels.'] with payload:'.PHP_EOL.$payload);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Auth/RegistersUsers.php:
--------------------------------------------------------------------------------
1 | validator($request->all());
31 |
32 | if ($validator->fails()) {
33 | $this->throwValidationException(
34 | $request, $validator
35 | );
36 | }
37 |
38 | Auth::login($this->create($request->all()));
39 |
40 | return redirect($this->redirectPath());
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Inspiring.php:
--------------------------------------------------------------------------------
1 | random();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/Console/stubs/jobs.stub:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
17 | $table->string('queue');
18 | $table->longText('payload');
19 | $table->tinyInteger('attempts')->unsigned();
20 | $table->tinyInteger('reserved')->unsigned();
21 | $table->unsignedInteger('reserved_at')->nullable();
22 | $table->unsignedInteger('available_at');
23 | $table->unsignedInteger('created_at');
24 | $table->index(['queue', 'reserved', 'reserved_at']);
25 | });
26 | }
27 |
28 | /**
29 | * Reverse the migrations.
30 | *
31 | * @return void
32 | */
33 | public function down()
34 | {
35 | Schema::drop('{{table}}');
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/src/Illuminate/Auth/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/auth",
3 | "description": "The Illuminate Auth package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/http": "5.1.*",
20 | "illuminate/session": "5.1.*",
21 | "illuminate/support": "5.1.*",
22 | "nesbot/carbon": "~1.19"
23 | },
24 | "autoload": {
25 | "psr-4": {
26 | "Illuminate\\Auth\\": ""
27 | }
28 | },
29 | "extra": {
30 | "branch-alias": {
31 | "dev-master": "5.1-dev"
32 | }
33 | },
34 | "suggest": {
35 | "illuminate/console": "Required to use the auth:clear-resets command (5.1.*)."
36 | },
37 | "minimum-stability": "dev"
38 | }
39 |
--------------------------------------------------------------------------------
/src/Illuminate/Encryption/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/encryption",
3 | "description": "The Illuminate Encryption package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "ext-mbstring": "*",
19 | "ext-openssl": "*",
20 | "illuminate/contracts": "5.1.*",
21 | "illuminate/support": "5.1.*"
22 | },
23 | "autoload": {
24 | "psr-4": {
25 | "Illuminate\\Encryption\\": ""
26 | }
27 | },
28 | "extra": {
29 | "branch-alias": {
30 | "dev-master": "5.1-dev"
31 | }
32 | },
33 | "suggest": {
34 | "paragonie/random_compat": "Provides a compatible interface like PHP7's random_bytes() in PHP 5 projects (~1.1)."
35 | },
36 | "minimum-stability": "dev"
37 | }
38 |
--------------------------------------------------------------------------------
/src/Illuminate/Session/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/session",
3 | "description": "The Illuminate Session package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "nesbot/carbon": "~1.19",
21 | "symfony/finder": "2.7.*",
22 | "symfony/http-foundation": "2.7.*"
23 | },
24 | "autoload": {
25 | "psr-4": {
26 | "Illuminate\\Session\\": ""
27 | }
28 | },
29 | "extra": {
30 | "branch-alias": {
31 | "dev-master": "5.1-dev"
32 | }
33 | },
34 | "suggest": {
35 | "illuminate/console": "Required to use the session:table command (5.1.*)."
36 | },
37 | "minimum-stability": "dev"
38 | }
39 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Bus/HandlerResolver.php:
--------------------------------------------------------------------------------
1 | app = $app;
27 | }
28 |
29 | /**
30 | * Handle an incoming request.
31 | *
32 | * @param \Illuminate\Http\Request $request
33 | * @param \Closure $next
34 | * @return mixed
35 | */
36 | public function handle($request, Closure $next)
37 | {
38 | if ($this->app->isDownForMaintenance()) {
39 | throw new HttpException(503);
40 | }
41 |
42 | return $next($request);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/PolicyMakeCommand.php:
--------------------------------------------------------------------------------
1 | =5.5.9",
18 | "illuminate/container": "5.1.*",
19 | "illuminate/contracts": "5.1.*",
20 | "illuminate/support": "5.1.*",
21 | "symfony/http-foundation": "2.7.*",
22 | "symfony/translation": "2.7.*"
23 | },
24 | "autoload": {
25 | "psr-4": {
26 | "Illuminate\\Validation\\": ""
27 | }
28 | },
29 | "extra": {
30 | "branch-alias": {
31 | "dev-master": "5.1-dev"
32 | }
33 | },
34 | "suggest": {
35 | "illuminate/database": "Required to use the database presence verifier (5.1.*)."
36 | },
37 | "minimum-stability": "dev"
38 | }
39 |
--------------------------------------------------------------------------------
/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:
--------------------------------------------------------------------------------
1 | cookies = $cookies;
26 | }
27 |
28 | /**
29 | * Handle an incoming request.
30 | *
31 | * @param \Illuminate\Http\Request $request
32 | * @param \Closure $next
33 | * @return mixed
34 | */
35 | public function handle($request, Closure $next)
36 | {
37 | $response = $next($request);
38 |
39 | foreach ($this->cookies->getQueuedCookies() as $cookie) {
40 | $response->headers->setCookie($cookie);
41 | }
42 |
43 | return $response;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/RequestMakeCommand.php:
--------------------------------------------------------------------------------
1 | getConnection()->insert($sql, $values);
21 |
22 | $id = $query->getConnection()->getPdo()->lastInsertId();
23 |
24 | return is_numeric($id) ? (int) $id : $id;
25 | }
26 |
27 | /**
28 | * Process the results of a column listing query.
29 | *
30 | * @param array $results
31 | * @return array
32 | */
33 | public function processColumnListing($results)
34 | {
35 | $mapping = function ($r) {
36 | $r = (object) $r;
37 |
38 | return $r->name;
39 | };
40 |
41 | return array_map($mapping, $results);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Schema/MySqlBuilder.php:
--------------------------------------------------------------------------------
1 | grammar->compileTableExists();
16 |
17 | $database = $this->connection->getDatabaseName();
18 |
19 | $table = $this->connection->getTablePrefix().$table;
20 |
21 | return count($this->connection->select($sql, [$database, $table])) > 0;
22 | }
23 |
24 | /**
25 | * Get the column listing for a given table.
26 | *
27 | * @param string $table
28 | * @return array
29 | */
30 | public function getColumnListing($table)
31 | {
32 | $sql = $this->grammar->compileColumnExists();
33 |
34 | $database = $this->connection->getDatabaseName();
35 |
36 | $table = $this->connection->getTablePrefix().$table;
37 |
38 | $results = $this->connection->select($sql, [$database, $table]);
39 |
40 | return $this->connection->getPostProcessor()->processColumnListing($results);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Auth/Access/Authorizable.php:
--------------------------------------------------------------------------------
1 | forUser($this)->check($ability, $arguments);
19 | }
20 |
21 | /**
22 | * Determine if the entity does not have a given ability.
23 | *
24 | * @param string $ability
25 | * @param array|mixed $arguments
26 | * @return bool
27 | */
28 | public function cant($ability, $arguments = [])
29 | {
30 | return ! $this->can($ability, $arguments);
31 | }
32 |
33 | /**
34 | * Determine if the entity does not have a given ability.
35 | *
36 | * @param string $ability
37 | * @param array|mixed $arguments
38 | * @return bool
39 | */
40 | public function cannot($ability, $arguments = [])
41 | {
42 | return $this->cant($ability, $arguments);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Illuminate/Cache/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/cache",
3 | "description": "The Illuminate Cache package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "nesbot/carbon": "~1.19"
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "Illuminate\\Cache\\": ""
25 | }
26 | },
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "5.1-dev"
30 | }
31 | },
32 | "suggest": {
33 | "illuminate/database": "Required to use the database cache driver (5.1.*).",
34 | "illuminate/filesystem": "Required to use the file cache driver (5.1.*).",
35 | "illuminate/redis": "Required to use the redis cache driver (5.1.*)."
36 | },
37 | "minimum-stability": "dev"
38 | }
39 |
--------------------------------------------------------------------------------
/src/Illuminate/Mail/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/mail",
3 | "description": "The Illuminate Mail package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/container": "5.1.*",
19 | "illuminate/contracts": "5.1.*",
20 | "illuminate/support": "5.1.*",
21 | "psr/log": "~1.0",
22 | "swiftmailer/swiftmailer": "~5.1"
23 | },
24 | "autoload": {
25 | "psr-4": {
26 | "Illuminate\\Mail\\": ""
27 | }
28 | },
29 | "extra": {
30 | "branch-alias": {
31 | "dev-master": "5.1-dev"
32 | }
33 | },
34 | "suggest": {
35 | "aws/aws-sdk-php": "Required to use the SES mail driver (~3.0).",
36 | "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers (~5.3|~6.0)."
37 | },
38 | "minimum-stability": "dev"
39 | }
40 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/Console/ForgetFailedCommand.php:
--------------------------------------------------------------------------------
1 | laravel['queue.failer']->forget($this->argument('id'))) {
32 | $this->info('Failed job deleted successfully!');
33 | } else {
34 | $this->error('No failed job matches the given ID.');
35 | }
36 | }
37 |
38 | /**
39 | * Get the console command arguments.
40 | *
41 | * @return array
42 | */
43 | protected function getArguments()
44 | {
45 | return [
46 | ['id', InputArgument::REQUIRED, 'The ID of the failed job'],
47 | ];
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/AggregateServiceProvider.php:
--------------------------------------------------------------------------------
1 | instances = [];
29 |
30 | foreach ($this->providers as $provider) {
31 | $this->instances[] = $this->app->register($provider);
32 | }
33 | }
34 |
35 | /**
36 | * Get the services provided by the provider.
37 | *
38 | * @return array
39 | */
40 | public function provides()
41 | {
42 | $provides = [];
43 |
44 | foreach ($this->providers as $provider) {
45 | $instance = $this->app->resolveProviderClass($provider);
46 |
47 | $provides = array_merge($provides, $instance->provides());
48 | }
49 |
50 | return $provides;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Console/Kernel.php:
--------------------------------------------------------------------------------
1 | dispatch($job);
18 | }
19 |
20 | /**
21 | * Marshal a job and dispatch it to its appropriate handler.
22 | *
23 | * @param mixed $job
24 | * @param array $array
25 | * @return mixed
26 | */
27 | protected function dispatchFromArray($job, array $array)
28 | {
29 | return app('Illuminate\Contracts\Bus\Dispatcher')->dispatchFromArray($job, $array);
30 | }
31 |
32 | /**
33 | * Marshal a job and dispatch it to its appropriate handler.
34 | *
35 | * @param mixed $job
36 | * @param \ArrayAccess $source
37 | * @param array $extras
38 | * @return mixed
39 | */
40 | protected function dispatchFrom($job, ArrayAccess $source, $extras = [])
41 | {
42 | return app('Illuminate\Contracts\Bus\Dispatcher')->dispatchFrom($job, $source, $extras);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Eloquent/Relations/HasOne.php:
--------------------------------------------------------------------------------
1 | query->first();
17 | }
18 |
19 | /**
20 | * Initialize the relation on a set of models.
21 | *
22 | * @param array $models
23 | * @param string $relation
24 | * @return array
25 | */
26 | public function initRelation(array $models, $relation)
27 | {
28 | foreach ($models as $model) {
29 | $model->setRelation($relation, null);
30 | }
31 |
32 | return $models;
33 | }
34 |
35 | /**
36 | * Match the eagerly loaded results to their parents.
37 | *
38 | * @param array $models
39 | * @param \Illuminate\Database\Eloquent\Collection $results
40 | * @param string $relation
41 | * @return array
42 | */
43 | public function match(array $models, Collection $results, $relation)
44 | {
45 | return $this->matchOne($models, $results, $relation);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Validation/ValidationException.php:
--------------------------------------------------------------------------------
1 | provider = $provider;
26 | }
27 |
28 | /**
29 | * Get the validation error message provider.
30 | *
31 | * @return \Illuminate\Contracts\Support\MessageBag
32 | */
33 | public function errors()
34 | {
35 | return $this->provider->getMessageBag();
36 | }
37 |
38 | /**
39 | * Get the validation error message provider.
40 | *
41 | * @return \Illuminate\Contracts\Support\MessageProvider
42 | */
43 | public function getMessageProvider()
44 | {
45 | return $this->provider;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Eloquent/Relations/MorphOne.php:
--------------------------------------------------------------------------------
1 | query->first();
17 | }
18 |
19 | /**
20 | * Initialize the relation on a set of models.
21 | *
22 | * @param array $models
23 | * @param string $relation
24 | * @return array
25 | */
26 | public function initRelation(array $models, $relation)
27 | {
28 | foreach ($models as $model) {
29 | $model->setRelation($relation, null);
30 | }
31 |
32 | return $models;
33 | }
34 |
35 | /**
36 | * Match the eagerly loaded results to their parents.
37 | *
38 | * @param array $models
39 | * @param \Illuminate\Database\Eloquent\Collection $results
40 | * @param string $relation
41 | * @return array
42 | */
43 | public function match(array $models, Collection $results, $relation)
44 | {
45 | return $this->matchOne($models, $results, $relation);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Illuminate/Filesystem/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/filesystem",
3 | "description": "The Illuminate Filesystem package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "symfony/finder": "2.7.*"
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "Illuminate\\Filesystem\\": ""
25 | }
26 | },
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "5.1-dev"
30 | }
31 | },
32 | "suggest": {
33 | "league/flysystem": "Required to use the Flysystem local and FTP drivers (~1.0).",
34 | "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).",
35 | "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0)."
36 | },
37 | "minimum-stability": "dev"
38 | }
39 |
--------------------------------------------------------------------------------
/src/Illuminate/Console/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/console",
3 | "description": "The Illuminate Console package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/contracts": "5.1.*",
19 | "illuminate/support": "5.1.*",
20 | "symfony/console": "2.7.*",
21 | "nesbot/carbon": "~1.19"
22 | },
23 | "autoload": {
24 | "psr-4": {
25 | "Illuminate\\Console\\": ""
26 | }
27 | },
28 | "extra": {
29 | "branch-alias": {
30 | "dev-master": "5.1-dev"
31 | }
32 | },
33 | "suggest": {
34 | "guzzlehttp/guzzle": "Required to use the thenPing method on schedules (~5.3|~6.0).",
35 | "mtdowling/cron-expression": "Required to use scheduling component (~1.0).",
36 | "symfony/process": "Required to use scheduling component (2.7.*)."
37 | },
38 | "minimum-stability": "dev"
39 | }
40 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/Connectors/DatabaseConnector.php:
--------------------------------------------------------------------------------
1 | connections = $connections;
27 | }
28 |
29 | /**
30 | * Establish a queue connection.
31 | *
32 | * @param array $config
33 | * @return \Illuminate\Contracts\Queue\Queue
34 | */
35 | public function connect(array $config)
36 | {
37 | return new DatabaseQueue(
38 | $this->connections->connection(Arr::get($config, 'connection')),
39 | $config['table'],
40 | $config['queue'],
41 | Arr::get($config, 'expire', 60)
42 | );
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/Failed/NullFailedJobProvider.php:
--------------------------------------------------------------------------------
1 | query->get();
17 | }
18 |
19 | /**
20 | * Initialize the relation on a set of models.
21 | *
22 | * @param array $models
23 | * @param string $relation
24 | * @return array
25 | */
26 | public function initRelation(array $models, $relation)
27 | {
28 | foreach ($models as $model) {
29 | $model->setRelation($relation, $this->related->newCollection());
30 | }
31 |
32 | return $models;
33 | }
34 |
35 | /**
36 | * Match the eagerly loaded results to their parents.
37 | *
38 | * @param array $models
39 | * @param \Illuminate\Database\Eloquent\Collection $results
40 | * @param string $relation
41 | * @return array
42 | */
43 | public function match(array $models, Collection $results, $relation)
44 | {
45 | return $this->matchMany($models, $results, $relation);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Illuminate/Auth/Authenticatable.php:
--------------------------------------------------------------------------------
1 | getKey();
15 | }
16 |
17 | /**
18 | * Get the password for the user.
19 | *
20 | * @return string
21 | */
22 | public function getAuthPassword()
23 | {
24 | return $this->password;
25 | }
26 |
27 | /**
28 | * Get the token value for the "remember me" session.
29 | *
30 | * @return string
31 | */
32 | public function getRememberToken()
33 | {
34 | return $this->{$this->getRememberTokenName()};
35 | }
36 |
37 | /**
38 | * Set the token value for the "remember me" session.
39 | *
40 | * @param string $value
41 | * @return void
42 | */
43 | public function setRememberToken($value)
44 | {
45 | $this->{$this->getRememberTokenName()} = $value;
46 | }
47 |
48 | /**
49 | * Get the column name for the "remember me" token.
50 | *
51 | * @return string
52 | */
53 | public function getRememberTokenName()
54 | {
55 | return 'remember_token';
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Eloquent/Relations/MorphMany.php:
--------------------------------------------------------------------------------
1 | query->get();
17 | }
18 |
19 | /**
20 | * Initialize the relation on a set of models.
21 | *
22 | * @param array $models
23 | * @param string $relation
24 | * @return array
25 | */
26 | public function initRelation(array $models, $relation)
27 | {
28 | foreach ($models as $model) {
29 | $model->setRelation($relation, $this->related->newCollection());
30 | }
31 |
32 | return $models;
33 | }
34 |
35 | /**
36 | * Match the eagerly loaded results to their parents.
37 | *
38 | * @param array $models
39 | * @param \Illuminate\Database\Eloquent\Collection $results
40 | * @param string $relation
41 | * @return array
42 | */
43 | public function match(array $models, Collection $results, $relation)
44 | {
45 | return $this->matchMany($models, $results, $relation);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Illuminate/Database/Query/Processors/PostgresProcessor.php:
--------------------------------------------------------------------------------
1 | getConnection()->selectFromWriteConnection($sql, $values);
21 |
22 | $sequence = $sequence ?: 'id';
23 |
24 | $result = (array) $results[0];
25 |
26 | $id = $result[$sequence];
27 |
28 | return is_numeric($id) ? (int) $id : $id;
29 | }
30 |
31 | /**
32 | * Process the results of a column listing query.
33 | *
34 | * @param array $results
35 | * @return array
36 | */
37 | public function processColumnListing($results)
38 | {
39 | $mapping = function ($r) {
40 | $r = (object) $r;
41 |
42 | return $r->column_name;
43 | };
44 |
45 | return array_map($mapping, $results);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Illuminate/Pagination/SimpleBootstrapThreePresenter.php:
--------------------------------------------------------------------------------
1 | paginator = $paginator;
18 | }
19 |
20 | /**
21 | * Determine if the underlying paginator being presented has pages to show.
22 | *
23 | * @return bool
24 | */
25 | public function hasPages()
26 | {
27 | return $this->paginator->hasPages() && count($this->paginator->items()) > 0;
28 | }
29 |
30 | /**
31 | * Convert the URL window into Bootstrap HTML.
32 | *
33 | * @return string
34 | */
35 | public function render()
36 | {
37 | if ($this->hasPages()) {
38 | return sprintf(
39 | '',
40 | $this->getPreviousButton(),
41 | $this->getNextButton()
42 | );
43 | }
44 |
45 | return '';
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/RouteClearCommand.php:
--------------------------------------------------------------------------------
1 | files = $files;
42 | }
43 |
44 | /**
45 | * Execute the console command.
46 | *
47 | * @return void
48 | */
49 | public function fire()
50 | {
51 | $this->files->delete($this->laravel->getCachedRoutesPath());
52 |
53 | $this->info('Route cache cleared!');
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/src/Illuminate/Routing/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/routing",
3 | "description": "The Illuminate Routing package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "illuminate/container": "5.1.*",
19 | "illuminate/contracts": "5.1.*",
20 | "illuminate/http": "5.1.*",
21 | "illuminate/pipeline": "5.1.*",
22 | "illuminate/session": "5.1.*",
23 | "illuminate/support": "5.1.*",
24 | "symfony/http-foundation": "2.7.*",
25 | "symfony/http-kernel": "2.7.*",
26 | "symfony/routing": "2.7.*"
27 | },
28 | "autoload": {
29 | "psr-4": {
30 | "Illuminate\\Routing\\": ""
31 | }
32 | },
33 | "extra": {
34 | "branch-alias": {
35 | "dev-master": "5.1-dev"
36 | }
37 | },
38 | "suggest": {
39 | "illuminate/console": "Required to use the make commands (5.1.*)."
40 | },
41 | "minimum-stability": "dev"
42 | }
43 |
--------------------------------------------------------------------------------
/src/Illuminate/Foundation/Console/ConfigClearCommand.php:
--------------------------------------------------------------------------------
1 | files = $files;
42 | }
43 |
44 | /**
45 | * Execute the console command.
46 | *
47 | * @return void
48 | */
49 | public function fire()
50 | {
51 | $this->files->delete($this->laravel->getCachedConfigPath());
52 |
53 | $this->info('Configuration cache cleared!');
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/src/Illuminate/Queue/README.md:
--------------------------------------------------------------------------------
1 | ## Illuminate Queue
2 |
3 | The Laravel Queue component provides a unified API across a variety of different queue services. Queues allow you to defer the processing of a time consuming task, such as sending an e-mail, until a later time, thus drastically speeding up the web requests to your application.
4 |
5 | ### Usage Instructions
6 |
7 | First, create a new Queue `Capsule` manager instance. Similar to the "Capsule" provided for the Eloquent ORM, the queue Capsule aims to make configuring the library for usage outside of the Laravel framework as easy as possible.
8 |
9 | ```PHP
10 | use Illuminate\Queue\Capsule\Manager as Queue;
11 |
12 | $queue = new Queue;
13 |
14 | $queue->addConnection([
15 | 'driver' => 'beanstalkd',
16 | 'host' => 'localhost',
17 | 'queue' => 'default',
18 | ]);
19 |
20 | // Make this Capsule instance available globally via static methods... (optional)
21 | $queue->setAsGlobal();
22 | ```
23 |
24 | Once the Capsule instance has been registered. You may use it like so:
25 |
26 | ```PHP
27 | // As an instance...
28 | $queue->push('SendEmail', array('message' => $message));
29 |
30 | // If setAsGlobal has been called...
31 | Queue::push('SendEmail', array('message' => $message));
32 | ```
33 |
34 | For further documentation on using the queue, consult the [Laravel framework documentation](http://laravel.com/docs).
35 |
--------------------------------------------------------------------------------
/src/Illuminate/View/ViewFinderInterface.php:
--------------------------------------------------------------------------------
1 | getConnection()->insert($sql, $values);
33 |
34 | $id = $query->getConnection()->getPdo()->lastInsertId($sequence);
35 |
36 | return is_numeric($id) ? (int) $id : $id;
37 | }
38 |
39 | /**
40 | * Process the results of a column listing query.
41 | *
42 | * @param array $results
43 | * @return array
44 | */
45 | public function processColumnListing($results)
46 | {
47 | return $results;
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/Illuminate/Http/ResponseTrait.php:
--------------------------------------------------------------------------------
1 | getStatusCode();
15 | }
16 |
17 | /**
18 | * Get the content of the response.
19 | *
20 | * @return string
21 | */
22 | public function content()
23 | {
24 | return $this->getContent();
25 | }
26 |
27 | /**
28 | * Set a header on the Response.
29 | *
30 | * @param string $key
31 | * @param string $value
32 | * @param bool $replace
33 | * @return $this
34 | */
35 | public function header($key, $value, $replace = true)
36 | {
37 | $this->headers->set($key, $value, $replace);
38 |
39 | return $this;
40 | }
41 |
42 | /**
43 | * Add a cookie to the response.
44 | *
45 | * @param \Symfony\Component\HttpFoundation\Cookie|mixed $cookie
46 | * @return $this
47 | */
48 | public function withCookie($cookie)
49 | {
50 | if (is_string($cookie) && function_exists('cookie')) {
51 | $cookie = call_user_func_array('cookie', func_get_args());
52 | }
53 |
54 | $this->headers->setCookie($cookie);
55 |
56 | return $this;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/Illuminate/Support/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "illuminate/support",
3 | "description": "The Illuminate Support package.",
4 | "license": "MIT",
5 | "homepage": "http://laravel.com",
6 | "support": {
7 | "issues": "https://github.com/laravel/framework/issues",
8 | "source": "https://github.com/laravel/framework"
9 | },
10 | "authors": [
11 | {
12 | "name": "Taylor Otwell",
13 | "email": "taylorotwell@gmail.com"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.5.9",
18 | "ext-mbstring": "*",
19 | "illuminate/contracts": "5.1.*",
20 | "doctrine/inflector": "~1.0",
21 | "danielstjules/stringy": "~1.8"
22 | },
23 | "autoload": {
24 | "psr-4": {
25 | "Illuminate\\Support\\": ""
26 | },
27 | "files": [
28 | "helpers.php"
29 | ]
30 | },
31 | "extra": {
32 | "branch-alias": {
33 | "dev-master": "5.1-dev"
34 | }
35 | },
36 | "suggest": {
37 | "jeremeamia/superclosure": "Required to be able to serialize closures (~2.0).",
38 | "paragonie/random_compat": "Provides a compatible interface like PHP7's random_bytes() in PHP 5 projects (~1.1).",
39 | "symfony/var-dumper": "Required to use the dd function (2.7.*)."
40 | },
41 | "minimum-stability": "dev"
42 | }
43 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Validation/Factory.php:
--------------------------------------------------------------------------------
1 | app->singleton('Illuminate\Bus\Dispatcher', function ($app) {
24 | return new Dispatcher($app, function () use ($app) {
25 | return $app['Illuminate\Contracts\Queue\Queue'];
26 | });
27 | });
28 |
29 | $this->app->alias(
30 | 'Illuminate\Bus\Dispatcher', 'Illuminate\Contracts\Bus\Dispatcher'
31 | );
32 |
33 | $this->app->alias(
34 | 'Illuminate\Bus\Dispatcher', 'Illuminate\Contracts\Bus\QueueingDispatcher'
35 | );
36 | }
37 |
38 | /**
39 | * Get the services provided by the provider.
40 | *
41 | * @return array
42 | */
43 | public function provides()
44 | {
45 | return [
46 | 'Illuminate\Bus\Dispatcher',
47 | 'Illuminate\Contracts\Bus\Dispatcher',
48 | 'Illuminate\Contracts\Bus\QueueingDispatcher',
49 | ];
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/Illuminate/Contracts/Cookie/Factory.php:
--------------------------------------------------------------------------------
1 |