├── LICENSE.md ├── README.md ├── composer.json └── src └── WpStarter ├── Auth ├── Access │ ├── AuthorizationException.php │ ├── Events │ │ └── GateEvaluated.php │ ├── Gate.php │ ├── HandlesAuthorization.php │ └── Response.php ├── AuthManager.php ├── AuthServiceProvider.php ├── Authenticatable.php ├── AuthenticationException.php ├── Console │ ├── ClearResetsCommand.php │ └── stubs │ │ └── make │ │ └── views │ │ └── layouts │ │ └── app.stub ├── CreatesUserProviders.php ├── DatabaseUserProvider.php ├── EloquentUserProvider.php ├── Events │ ├── Attempting.php │ ├── Authenticated.php │ ├── CurrentDeviceLogout.php │ ├── Failed.php │ ├── Lockout.php │ ├── Login.php │ ├── Logout.php │ ├── OtherDeviceLogout.php │ ├── PasswordReset.php │ ├── Registered.php │ ├── Validated.php │ └── Verified.php ├── GenericUser.php ├── GuardHelpers.php ├── LICENSE.md ├── Listeners │ └── SendEmailVerificationNotification.php ├── Middleware │ ├── Authenticate.php │ ├── AuthenticateWithBasicAuth.php │ ├── Authorize.php │ ├── EnsureEmailIsVerified.php │ └── RequirePassword.php ├── MustVerifyEmail.php ├── Notifications │ ├── ResetPassword.php │ └── VerifyEmail.php ├── Passwords │ ├── CanResetPassword.php │ ├── DatabaseTokenRepository.php │ ├── PasswordBroker.php │ ├── PasswordBrokerManager.php │ ├── PasswordResetServiceProvider.php │ └── TokenRepositoryInterface.php ├── Recaller.php ├── RequestGuard.php ├── SessionGuard.php ├── TokenGuard.php └── composer.json ├── Broadcasting ├── BroadcastController.php ├── BroadcastEvent.php ├── BroadcastException.php ├── BroadcastManager.php ├── BroadcastServiceProvider.php ├── Broadcasters │ ├── AblyBroadcaster.php │ ├── Broadcaster.php │ ├── LogBroadcaster.php │ ├── NullBroadcaster.php │ ├── PusherBroadcaster.php │ ├── RedisBroadcaster.php │ └── UsePusherChannelConventions.php ├── Channel.php ├── EncryptedPrivateChannel.php ├── InteractsWithBroadcasting.php ├── InteractsWithSockets.php ├── LICENSE.md ├── PendingBroadcast.php ├── PresenceChannel.php ├── PrivateChannel.php └── composer.json ├── Bus ├── Batch.php ├── BatchFactory.php ├── BatchRepository.php ├── Batchable.php ├── BusServiceProvider.php ├── DatabaseBatchRepository.php ├── Dispatcher.php ├── Events │ └── BatchDispatched.php ├── LICENSE.md ├── PendingBatch.php ├── PrunableBatchRepository.php ├── Queueable.php ├── UniqueLock.php ├── UpdatedBatchJobCounts.php └── composer.json ├── Cache ├── ApcStore.php ├── ApcWrapper.php ├── ArrayLock.php ├── ArrayStore.php ├── CacheLock.php ├── CacheManager.php ├── CacheServiceProvider.php ├── Console │ ├── CacheTableCommand.php │ ├── ClearCommand.php │ ├── ForgetCommand.php │ └── stubs │ │ └── cache.stub ├── DatabaseLock.php ├── DatabaseStore.php ├── DynamoDbLock.php ├── DynamoDbStore.php ├── Events │ ├── CacheEvent.php │ ├── CacheHit.php │ ├── CacheMissed.php │ ├── KeyForgotten.php │ └── KeyWritten.php ├── FileStore.php ├── HasCacheLock.php ├── LICENSE.md ├── Lock.php ├── LuaScripts.php ├── MemcachedConnector.php ├── MemcachedLock.php ├── MemcachedStore.php ├── NoLock.php ├── NullStore.php ├── PhpRedisLock.php ├── RateLimiter.php ├── RateLimiting │ ├── GlobalLimit.php │ ├── Limit.php │ └── Unlimited.php ├── RedisLock.php ├── RedisStore.php ├── RedisTaggedCache.php ├── Repository.php ├── RetrievesMultipleKeys.php ├── TagSet.php ├── TaggableStore.php ├── TaggedCache.php └── composer.json ├── Collections ├── Arr.php ├── Collection.php ├── Enumerable.php ├── HigherOrderCollectionProxy.php ├── HigherOrderWhenProxy.php ├── ItemNotFoundException.php ├── LICENSE.md ├── LazyCollection.php ├── MultipleItemsFoundException.php ├── Traits │ └── EnumeratesValues.php ├── composer.json └── helpers.php ├── Config ├── LICENSE.md ├── Repository.php └── composer.json ├── Console ├── Application.php ├── BufferedConsoleOutput.php ├── Command.php ├── Concerns │ ├── CallsCommands.php │ ├── CreatesMatchingTest.php │ ├── HasParameters.php │ └── InteractsWithIO.php ├── ConfirmableTrait.php ├── Events │ ├── ArtisanStarting.php │ ├── CommandFinished.php │ ├── CommandStarting.php │ ├── ScheduledBackgroundTaskFinished.php │ ├── ScheduledTaskFailed.php │ ├── ScheduledTaskFinished.php │ ├── ScheduledTaskSkipped.php │ └── ScheduledTaskStarting.php ├── GeneratorCommand.php ├── LICENSE.md ├── OutputStyle.php ├── Parser.php ├── Scheduling │ ├── CacheAware.php │ ├── CacheEventMutex.php │ ├── CacheSchedulingMutex.php │ ├── CallbackEvent.php │ ├── CommandBuilder.php │ ├── Event.php │ ├── EventMutex.php │ ├── ManagesFrequencies.php │ ├── Schedule.php │ ├── ScheduleClearCacheCommand.php │ ├── ScheduleFinishCommand.php │ ├── ScheduleListCommand.php │ ├── ScheduleRunCommand.php │ ├── ScheduleTestCommand.php │ ├── ScheduleWorkCommand.php │ └── SchedulingMutex.php └── composer.json ├── Container ├── BoundMethod.php ├── Container.php ├── ContextualBindingBuilder.php ├── EntryNotFoundException.php ├── LICENSE.md ├── RewindableGenerator.php ├── Util.php └── composer.json ├── Contracts ├── Auth │ ├── Access │ │ ├── Authorizable.php │ │ └── Gate.php │ ├── Authenticatable.php │ ├── CanResetPassword.php │ ├── Factory.php │ ├── Guard.php │ ├── Middleware │ │ └── AuthenticatesRequests.php │ ├── MustVerifyEmail.php │ ├── PasswordBroker.php │ ├── PasswordBrokerFactory.php │ ├── StatefulGuard.php │ ├── SupportsBasicAuth.php │ └── UserProvider.php ├── Broadcasting │ ├── Broadcaster.php │ ├── Factory.php │ ├── HasBroadcastChannel.php │ ├── ShouldBroadcast.php │ └── ShouldBroadcastNow.php ├── Bus │ ├── Dispatcher.php │ └── QueueingDispatcher.php ├── Cache │ ├── Factory.php │ ├── Lock.php │ ├── LockProvider.php │ ├── LockTimeoutException.php │ ├── Repository.php │ └── Store.php ├── Config │ └── Repository.php ├── Console │ ├── Application.php │ └── Kernel.php ├── Container │ ├── BindingResolutionException.php │ ├── CircularDependencyException.php │ ├── Container.php │ └── ContextualBindingBuilder.php ├── Cookie │ ├── Factory.php │ └── QueueingFactory.php ├── Database │ ├── Eloquent │ │ ├── Castable.php │ │ ├── CastsAttributes.php │ │ ├── CastsInboundAttributes.php │ │ ├── DeviatesCastableAttributes.php │ │ ├── SerializesCastableAttributes.php │ │ └── SupportsPartialRelations.php │ ├── Events │ │ └── MigrationEvent.php │ └── ModelIdentifier.php ├── Debug │ └── ExceptionHandler.php ├── Encryption │ ├── DecryptException.php │ ├── EncryptException.php │ ├── Encrypter.php │ └── StringEncrypter.php ├── Events │ └── Dispatcher.php ├── Filesystem │ ├── Cloud.php │ ├── Factory.php │ ├── FileExistsException.php │ ├── FileNotFoundException.php │ ├── Filesystem.php │ └── LockTimeoutException.php ├── Foundation │ ├── Application.php │ ├── CachesConfiguration.php │ └── CachesRoutes.php ├── Hashing │ └── Hasher.php ├── Http │ └── Kernel.php ├── LICENSE.md ├── Mail │ ├── Factory.php │ ├── MailQueue.php │ ├── Mailable.php │ └── Mailer.php ├── Notifications │ ├── Dispatcher.php │ └── Factory.php ├── Pagination │ ├── CursorPaginator.php │ ├── LengthAwarePaginator.php │ └── Paginator.php ├── Pipeline │ ├── Hub.php │ └── Pipeline.php ├── Queue │ ├── ClearableQueue.php │ ├── EntityNotFoundException.php │ ├── EntityResolver.php │ ├── Factory.php │ ├── Job.php │ ├── Monitor.php │ ├── Queue.php │ ├── QueueableCollection.php │ ├── QueueableEntity.php │ ├── ShouldBeEncrypted.php │ ├── ShouldBeUnique.php │ ├── ShouldBeUniqueUntilProcessing.php │ └── ShouldQueue.php ├── Redis │ ├── Connection.php │ ├── Connector.php │ ├── Factory.php │ └── LimiterTimeoutException.php ├── Routing │ ├── BindingRegistrar.php │ ├── Registrar.php │ ├── ResponseFactory.php │ ├── UrlGenerator.php │ └── UrlRoutable.php ├── Session │ └── Session.php ├── Support │ ├── Arrayable.php │ ├── CanBeEscapedWhenCastToString.php │ ├── DeferrableProvider.php │ ├── DeferringDisplayableValue.php │ ├── Htmlable.php │ ├── Jsonable.php │ ├── MessageBag.php │ ├── MessageProvider.php │ ├── Renderable.php │ ├── Responsable.php │ └── ValidatedData.php ├── Translation │ ├── HasLocalePreference.php │ ├── Loader.php │ └── Translator.php ├── Validation │ ├── DataAwareRule.php │ ├── Factory.php │ ├── ImplicitRule.php │ ├── Rule.php │ ├── UncompromisedVerifier.php │ ├── ValidatesWhenResolved.php │ ├── Validator.php │ └── ValidatorAwareRule.php ├── View │ ├── Engine.php │ ├── Factory.php │ └── View.php └── composer.json ├── Cookie ├── CookieJar.php ├── CookieServiceProvider.php ├── CookieValuePrefix.php ├── LICENSE.md ├── Middleware │ ├── AddQueuedCookiesToResponse.php │ └── EncryptCookies.php └── composer.json ├── Database ├── Capsule │ └── Manager.php ├── ClassMorphViolationException.php ├── Concerns │ ├── BuildsQueries.php │ ├── ExplainsQueries.php │ └── ManagesTransactions.php ├── ConfigurationUrlParser.php ├── Connection.php ├── ConnectionInterface.php ├── ConnectionResolver.php ├── ConnectionResolverInterface.php ├── Connectors │ ├── ConnectionFactory.php │ ├── Connector.php │ ├── ConnectorInterface.php │ ├── MySqlConnector.php │ ├── PostgresConnector.php │ ├── SQLiteConnector.php │ └── SqlServerConnector.php ├── Console │ ├── DbCommand.php │ ├── DumpCommand.php │ ├── Factories │ │ ├── FactoryMakeCommand.php │ │ └── stubs │ │ │ └── factory.stub │ ├── Migrations │ │ ├── BaseCommand.php │ │ ├── FreshCommand.php │ │ ├── InstallCommand.php │ │ ├── MigrateCommand.php │ │ ├── MigrateMakeCommand.php │ │ ├── RefreshCommand.php │ │ ├── ResetCommand.php │ │ ├── RollbackCommand.php │ │ ├── StatusCommand.php │ │ └── TableGuesser.php │ ├── PruneCommand.php │ ├── Seeds │ │ ├── SeedCommand.php │ │ ├── SeederMakeCommand.php │ │ └── stubs │ │ │ └── seeder.stub │ └── WipeCommand.php ├── DBAL │ └── TimestampType.php ├── DatabaseManager.php ├── DatabaseServiceProvider.php ├── DatabaseTransactionRecord.php ├── DatabaseTransactionsManager.php ├── DetectsConcurrencyErrors.php ├── DetectsLostConnections.php ├── Eloquent │ ├── BroadcastableModelEventOccurred.php │ ├── BroadcastsEvents.php │ ├── Builder.php │ ├── Casts │ │ ├── ArrayObject.php │ │ ├── AsArrayObject.php │ │ ├── AsCollection.php │ │ ├── AsEncryptedArrayObject.php │ │ ├── AsEncryptedCollection.php │ │ ├── AsStringable.php │ │ └── Attribute.php │ ├── Collection.php │ ├── Concerns │ │ ├── GuardsAttributes.php │ │ ├── HasAttributes.php │ │ ├── HasEvents.php │ │ ├── HasGlobalScopes.php │ │ ├── HasRelationships.php │ │ ├── HasTimestamps.php │ │ ├── HidesAttributes.php │ │ └── QueriesRelationships.php │ ├── Contracts │ │ └── Model.php │ ├── Factories │ │ ├── BelongsToManyRelationship.php │ │ ├── BelongsToRelationship.php │ │ ├── CrossJoinSequence.php │ │ ├── Factory.php │ │ ├── HasFactory.php │ │ ├── Relationship.php │ │ └── Sequence.php │ ├── HigherOrderBuilderProxy.php │ ├── InvalidCastException.php │ ├── JsonEncodingException.php │ ├── MassAssignmentException.php │ ├── MassPrunable.php │ ├── Model.php │ ├── ModelNotFoundException.php │ ├── Prunable.php │ ├── QueueEntityResolver.php │ ├── RelationNotFoundException.php │ ├── Relations │ │ ├── BelongsTo.php │ │ ├── BelongsToMany.php │ │ ├── Concerns │ │ │ ├── AsPivot.php │ │ │ ├── CanBeOneOfMany.php │ │ │ ├── ComparesRelatedModels.php │ │ │ ├── InteractsWithDictionary.php │ │ │ ├── InteractsWithPivotTable.php │ │ │ └── SupportsDefaultModels.php │ │ ├── HasMany.php │ │ ├── HasManyThrough.php │ │ ├── HasOne.php │ │ ├── HasOneOrMany.php │ │ ├── HasOneThrough.php │ │ ├── MorphMany.php │ │ ├── MorphOne.php │ │ ├── MorphOneOrMany.php │ │ ├── MorphPivot.php │ │ ├── MorphTo.php │ │ ├── MorphToMany.php │ │ ├── Pivot.php │ │ └── Relation.php │ ├── Scope.php │ ├── SoftDeletes.php │ └── SoftDeletingScope.php ├── Events │ ├── ConnectionEvent.php │ ├── DatabaseRefreshed.php │ ├── MigrationEnded.php │ ├── MigrationEvent.php │ ├── MigrationStarted.php │ ├── MigrationsEnded.php │ ├── MigrationsEvent.php │ ├── MigrationsStarted.php │ ├── ModelsPruned.php │ ├── NoPendingMigrations.php │ ├── QueryExecuted.php │ ├── SchemaDumped.php │ ├── SchemaLoaded.php │ ├── StatementPrepared.php │ ├── TransactionBeginning.php │ ├── TransactionCommitted.php │ └── TransactionRolledBack.php ├── Grammar.php ├── LICENSE.md ├── LazyLoadingViolationException.php ├── MigrationServiceProvider.php ├── Migrations │ ├── DatabaseMigrationRepository.php │ ├── Migration.php │ ├── MigrationCreator.php │ ├── MigrationRepositoryInterface.php │ ├── Migrator.php │ └── stubs │ │ ├── migration.create.stub │ │ ├── migration.stub │ │ └── migration.update.stub ├── MultipleRecordsFoundException.php ├── MySqlConnection.php ├── PDO │ ├── Concerns │ │ └── ConnectsToDatabase.php │ ├── Connection.php │ ├── MySqlDriver.php │ ├── PostgresDriver.php │ ├── SQLiteDriver.php │ ├── SqlServerConnection.php │ └── SqlServerDriver.php ├── PostgresConnection.php ├── Query │ ├── Builder.php │ ├── Expression.php │ ├── Grammars │ │ ├── Grammar.php │ │ ├── MySqlGrammar.php │ │ ├── PostgresGrammar.php │ │ ├── SQLiteGrammar.php │ │ └── SqlServerGrammar.php │ ├── JoinClause.php │ └── Processors │ │ ├── MySqlProcessor.php │ │ ├── PostgresProcessor.php │ │ ├── Processor.php │ │ ├── SQLiteProcessor.php │ │ └── SqlServerProcessor.php ├── QueryException.php ├── README.md ├── RecordsNotFoundException.php ├── SQLiteConnection.php ├── Schema │ ├── Blueprint.php │ ├── Builder.php │ ├── ColumnDefinition.php │ ├── ForeignIdColumnDefinition.php │ ├── ForeignKeyDefinition.php │ ├── Grammars │ │ ├── ChangeColumn.php │ │ ├── Grammar.php │ │ ├── MySqlGrammar.php │ │ ├── PostgresGrammar.php │ │ ├── RenameColumn.php │ │ ├── SQLiteGrammar.php │ │ └── SqlServerGrammar.php │ ├── MySqlBuilder.php │ ├── MySqlSchemaState.php │ ├── PostgresBuilder.php │ ├── PostgresSchemaState.php │ ├── SQLiteBuilder.php │ ├── SchemaState.php │ ├── SqlServerBuilder.php │ └── SqliteSchemaState.php ├── Seeder.php ├── SqlServerConnection.php └── composer.json ├── Encryption ├── Encrypter.php ├── EncryptionServiceProvider.php ├── LICENSE.md ├── MissingAppKeyException.php └── composer.json ├── Events ├── CallQueuedListener.php ├── Dispatcher.php ├── EventServiceProvider.php ├── InvokeQueuedClosure.php ├── LICENSE.md ├── NullDispatcher.php ├── QueuedClosure.php ├── composer.json └── functions.php ├── Filesystem ├── Cache.php ├── Filesystem.php ├── FilesystemAdapter.php ├── FilesystemManager.php ├── FilesystemServiceProvider.php ├── LICENSE.md ├── LockableFile.php └── composer.json ├── Foundation ├── AliasLoader.php ├── Application.php ├── Auth │ ├── Access │ │ ├── Authorizable.php │ │ └── AuthorizesRequests.php │ ├── EmailVerificationRequest.php │ └── User.php ├── Bootstrap │ ├── BootProviders.php │ ├── HandleExceptions.php │ ├── LoadConfiguration.php │ ├── LoadEnvironmentVariables.php │ ├── RegisterFacades.php │ ├── RegisterProviders.php │ └── SetRequestForConsole.php ├── Bus │ ├── Dispatchable.php │ ├── DispatchesJobs.php │ ├── PendingChain.php │ ├── PendingClosureDispatch.php │ └── PendingDispatch.php ├── ComposerScripts.php ├── Console │ ├── CastMakeCommand.php │ ├── ChannelMakeCommand.php │ ├── ClearCompiledCommand.php │ ├── ClosureCommand.php │ ├── ComponentMakeCommand.php │ ├── ConfigCacheCommand.php │ ├── ConfigClearCommand.php │ ├── ConsoleMakeCommand.php │ ├── DownCommand.php │ ├── EnvironmentCommand.php │ ├── EventCacheCommand.php │ ├── EventClearCommand.php │ ├── EventGenerateCommand.php │ ├── EventListCommand.php │ ├── EventMakeCommand.php │ ├── ExceptionMakeCommand.php │ ├── JobMakeCommand.php │ ├── Kernel.php │ ├── KeyGenerateCommand.php │ ├── ListenerMakeCommand.php │ ├── MailMakeCommand.php │ ├── ModelMakeCommand.php │ ├── NotificationMakeCommand.php │ ├── ObserverMakeCommand.php │ ├── OptimizeClearCommand.php │ ├── OptimizeCommand.php │ ├── PackageDiscoverCommand.php │ ├── PolicyMakeCommand.php │ ├── ProviderMakeCommand.php │ ├── QueuedCommand.php │ ├── RequestMakeCommand.php │ ├── ResourceMakeCommand.php │ ├── RouteCacheCommand.php │ ├── RouteClearCommand.php │ ├── RouteListCommand.php │ ├── RuleMakeCommand.php │ ├── ServeCommand.php │ ├── StorageLinkCommand.php │ ├── StubPublishCommand.php │ ├── TestMakeCommand.php │ ├── UpCommand.php │ ├── VendorPublishCommand.php │ ├── ViewCacheCommand.php │ ├── ViewClearCommand.php │ └── stubs │ │ ├── cast.stub │ │ ├── channel.stub │ │ ├── console.stub │ │ ├── event.stub │ │ ├── exception-render-report.stub │ │ ├── exception-render.stub │ │ ├── exception-report.stub │ │ ├── exception.stub │ │ ├── job.queued.stub │ │ ├── job.stub │ │ ├── listener-duck.stub │ │ ├── listener-queued-duck.stub │ │ ├── listener-queued.stub │ │ ├── listener.stub │ │ ├── mail.stub │ │ ├── maintenance-mode.stub │ │ ├── markdown-mail.stub │ │ ├── markdown-notification.stub │ │ ├── markdown.stub │ │ ├── model.pivot.stub │ │ ├── model.stub │ │ ├── notification.stub │ │ ├── observer.plain.stub │ │ ├── observer.stub │ │ ├── pest.stub │ │ ├── pest.unit.stub │ │ ├── policy.plain.stub │ │ ├── policy.stub │ │ ├── provider.stub │ │ ├── request.stub │ │ ├── resource-collection.stub │ │ ├── resource.stub │ │ ├── routes.stub │ │ ├── rule.stub │ │ ├── test.stub │ │ ├── test.unit.stub │ │ └── view-component.stub ├── EnvironmentDetector.php ├── Events │ ├── DiscoverEvents.php │ ├── Dispatchable.php │ ├── LocaleUpdated.php │ ├── MaintenanceModeDisabled.php │ ├── MaintenanceModeEnabled.php │ └── VendorTagPublished.php ├── Exceptions │ ├── Handler.php │ ├── RegisterErrorViewPaths.php │ ├── ReportableHandler.php │ ├── WhoopsHandler.php │ └── views │ │ ├── 401.blade.php │ │ ├── 403.blade.php │ │ ├── 404.blade.php │ │ ├── 419.blade.php │ │ ├── 429.blade.php │ │ ├── 500.blade.php │ │ ├── 503.blade.php │ │ ├── illustrated-layout.blade.php │ │ ├── layout.blade.php │ │ └── minimal.blade.php ├── Http │ ├── Events │ │ └── RequestHandled.php │ ├── Exceptions │ │ └── MaintenanceModeException.php │ ├── FormRequest.php │ ├── Kernel.php │ ├── MaintenanceModeBypassCookie.php │ └── Middleware │ │ ├── CheckForMaintenanceMode.php │ │ ├── ConvertEmptyStringsToNull.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── TransformsRequest.php │ │ ├── TrimStrings.php │ │ ├── ValidatePostSize.php │ │ └── VerifyCsrfToken.php ├── Inspiring.php ├── Mix.php ├── PackageManifest.php ├── ProviderRepository.php ├── Providers │ ├── ArtisanServiceProvider.php │ ├── ComposerServiceProvider.php │ ├── ConsoleSupportServiceProvider.php │ ├── FormRequestServiceProvider.php │ └── FoundationServiceProvider.php ├── Support │ └── Providers │ │ ├── AuthServiceProvider.php │ │ ├── EventServiceProvider.php │ │ └── RouteServiceProvider.php ├── Testing │ ├── Concerns │ │ ├── InteractsWithAuthentication.php │ │ ├── InteractsWithConsole.php │ │ ├── InteractsWithContainer.php │ │ ├── InteractsWithDatabase.php │ │ ├── InteractsWithDeprecationHandling.php │ │ ├── InteractsWithExceptionHandling.php │ │ ├── InteractsWithRedis.php │ │ ├── InteractsWithSession.php │ │ ├── InteractsWithTime.php │ │ ├── InteractsWithViews.php │ │ ├── MakesHttpRequests.php │ │ └── MocksApplicationServices.php │ ├── DatabaseMigrations.php │ ├── DatabaseTransactions.php │ ├── LazilyRefreshDatabase.php │ ├── RefreshDatabase.php │ ├── RefreshDatabaseState.php │ ├── TestCase.php │ ├── Traits │ │ └── CanConfigureMigrationCommands.php │ ├── WithFaker.php │ ├── WithoutEvents.php │ ├── WithoutMiddleware.php │ └── Wormhole.php ├── Validation │ └── ValidatesRequests.php ├── helpers.php └── stubs │ └── facade.stub ├── Hashing ├── AbstractHasher.php ├── Argon2IdHasher.php ├── ArgonHasher.php ├── BcryptHasher.php ├── HashManager.php ├── HashServiceProvider.php ├── LICENSE.md └── composer.json ├── Http ├── Client │ ├── ConnectionException.php │ ├── Events │ │ ├── ConnectionFailed.php │ │ ├── RequestSending.php │ │ └── ResponseReceived.php │ ├── Factory.php │ ├── HttpClientException.php │ ├── PendingRequest.php │ ├── Pool.php │ ├── Request.php │ ├── RequestException.php │ ├── Response.php │ └── ResponseSequence.php ├── Concerns │ ├── InteractsWithContentTypes.php │ ├── InteractsWithFlashData.php │ └── InteractsWithInput.php ├── Exceptions │ ├── HttpResponseException.php │ ├── PostTooLargeException.php │ └── ThrottleRequestsException.php ├── File.php ├── FileHelpers.php ├── JsonResponse.php ├── LICENSE.md ├── Middleware │ ├── CheckResponseForModifications.php │ ├── FrameGuard.php │ ├── SetCacheHeaders.php │ ├── TrustHosts.php │ └── TrustProxies.php ├── RedirectResponse.php ├── Request.php ├── Resources │ ├── CollectsResources.php │ ├── ConditionallyLoadsAttributes.php │ ├── DelegatesToResource.php │ ├── Json │ │ ├── AnonymousResourceCollection.php │ │ ├── JsonResource.php │ │ ├── PaginatedResourceResponse.php │ │ ├── ResourceCollection.php │ │ └── ResourceResponse.php │ ├── MergeValue.php │ ├── MissingValue.php │ └── PotentiallyMissing.php ├── Response.php ├── ResponseTrait.php ├── Testing │ ├── File.php │ ├── FileFactory.php │ └── MimeType.php ├── UploadedFile.php └── composer.json ├── Log ├── Events │ └── MessageLogged.php ├── LICENSE.md ├── LogManager.php ├── LogServiceProvider.php ├── Logger.php ├── ParsesLogConfiguration.php └── composer.json ├── Macroable ├── LICENSE.md ├── Traits │ └── Macroable.php └── composer.json ├── Mail ├── Events │ ├── MessageSending.php │ └── MessageSent.php ├── LICENSE.md ├── MailManager.php ├── MailServiceProvider.php ├── Mailable.php ├── Mailer.php ├── Markdown.php ├── Message.php ├── PendingMail.php ├── SendQueuedMailable.php ├── Transport │ ├── ArrayTransport.php │ ├── LogTransport.php │ ├── MailgunTransport.php │ ├── SesTransport.php │ └── Transport.php ├── composer.json └── resources │ └── views │ ├── html │ ├── button.blade.php │ ├── footer.blade.php │ ├── header.blade.php │ ├── layout.blade.php │ ├── message.blade.php │ ├── panel.blade.php │ ├── subcopy.blade.php │ ├── table.blade.php │ └── themes │ │ └── default.css │ └── text │ ├── button.blade.php │ ├── footer.blade.php │ ├── header.blade.php │ ├── layout.blade.php │ ├── message.blade.php │ ├── panel.blade.php │ ├── subcopy.blade.php │ └── table.blade.php ├── Notifications ├── Action.php ├── AnonymousNotifiable.php ├── ChannelManager.php ├── Channels │ ├── BroadcastChannel.php │ ├── DatabaseChannel.php │ └── MailChannel.php ├── Console │ ├── NotificationTableCommand.php │ └── stubs │ │ └── notifications.stub ├── DatabaseNotification.php ├── DatabaseNotificationCollection.php ├── Events │ ├── BroadcastNotificationCreated.php │ ├── NotificationFailed.php │ ├── NotificationSending.php │ └── NotificationSent.php ├── HasDatabaseNotifications.php ├── LICENSE.md ├── Messages │ ├── BroadcastMessage.php │ ├── DatabaseMessage.php │ ├── MailMessage.php │ └── SimpleMessage.php ├── Notifiable.php ├── Notification.php ├── NotificationSender.php ├── NotificationServiceProvider.php ├── RoutesNotifications.php ├── SendQueuedNotifications.php ├── composer.json └── resources │ └── views │ └── email.blade.php ├── Pagination ├── AbstractCursorPaginator.php ├── AbstractPaginator.php ├── Cursor.php ├── CursorPaginationException.php ├── CursorPaginator.php ├── LICENSE.md ├── LengthAwarePaginator.php ├── PaginationServiceProvider.php ├── PaginationState.php ├── Paginator.php ├── UrlWindow.php ├── composer.json └── resources │ └── views │ ├── bootstrap-4.blade.php │ ├── default.blade.php │ ├── semantic-ui.blade.php │ ├── simple-bootstrap-4.blade.php │ ├── simple-default.blade.php │ ├── simple-tailwind.blade.php │ └── tailwind.blade.php ├── Pipeline ├── Hub.php ├── LICENSE.md ├── Pipeline.php ├── PipelineServiceProvider.php └── composer.json ├── Queue ├── BeanstalkdQueue.php ├── CallQueuedClosure.php ├── CallQueuedHandler.php ├── Capsule │ └── Manager.php ├── Connectors │ ├── BeanstalkdConnector.php │ ├── ConnectorInterface.php │ ├── DatabaseConnector.php │ ├── NullConnector.php │ ├── RedisConnector.php │ ├── SqsConnector.php │ └── SyncConnector.php ├── Console │ ├── BatchesTableCommand.php │ ├── ClearCommand.php │ ├── FailedTableCommand.php │ ├── FlushFailedCommand.php │ ├── ForgetFailedCommand.php │ ├── ListFailedCommand.php │ ├── ListenCommand.php │ ├── MonitorCommand.php │ ├── PruneBatchesCommand.php │ ├── PruneFailedJobsCommand.php │ ├── RestartCommand.php │ ├── RetryBatchCommand.php │ ├── RetryCommand.php │ ├── TableCommand.php │ ├── WorkCommand.php │ └── stubs │ │ ├── batches.stub │ │ ├── failed_jobs.stub │ │ └── jobs.stub ├── DatabaseQueue.php ├── Events │ ├── JobExceptionOccurred.php │ ├── JobFailed.php │ ├── JobProcessed.php │ ├── JobProcessing.php │ ├── JobQueued.php │ ├── JobRetryRequested.php │ ├── Looping.php │ ├── QueueBusy.php │ └── WorkerStopping.php ├── Failed │ ├── DatabaseFailedJobProvider.php │ ├── DatabaseUuidFailedJobProvider.php │ ├── DynamoDbFailedJobProvider.php │ ├── FailedJobProviderInterface.php │ ├── NullFailedJobProvider.php │ └── PrunableFailedJobProvider.php ├── InteractsWithQueue.php ├── InvalidPayloadException.php ├── Jobs │ ├── BeanstalkdJob.php │ ├── DatabaseJob.php │ ├── DatabaseJobRecord.php │ ├── Job.php │ ├── JobName.php │ ├── QueuedJob.php │ ├── RedisJob.php │ ├── SqsJob.php │ └── SyncJob.php ├── LICENSE.md ├── Listener.php ├── ListenerOptions.php ├── LuaScripts.php ├── ManuallyFailedException.php ├── MaxAttemptsExceededException.php ├── Middleware │ ├── RateLimited.php │ ├── RateLimitedWithRedis.php │ ├── ThrottlesExceptions.php │ ├── ThrottlesExceptionsWithRedis.php │ └── WithoutOverlapping.php ├── NullQueue.php ├── Queue.php ├── QueueManager.php ├── QueueServiceProvider.php ├── README.md ├── RedisQueue.php ├── SerializableClosure.php ├── SerializableClosureFactory.php ├── SerializesAndRestoresModelIdentifiers.php ├── SerializesModels.php ├── SqsQueue.php ├── SyncQueue.php ├── Worker.php ├── WorkerOptions.php └── composer.json ├── Redis ├── Connections │ ├── Connection.php │ ├── PacksPhpRedisValues.php │ ├── PhpRedisClusterConnection.php │ ├── PhpRedisConnection.php │ ├── PredisClusterConnection.php │ └── PredisConnection.php ├── Connectors │ ├── PhpRedisConnector.php │ └── PredisConnector.php ├── Events │ └── CommandExecuted.php ├── LICENSE.md ├── Limiters │ ├── ConcurrencyLimiter.php │ ├── ConcurrencyLimiterBuilder.php │ ├── DurationLimiter.php │ └── DurationLimiterBuilder.php ├── RedisManager.php ├── RedisServiceProvider.php └── composer.json ├── Routing ├── AbstractRouteCollection.php ├── CompiledRouteCollection.php ├── Console │ ├── ControllerMakeCommand.php │ ├── MiddlewareMakeCommand.php │ └── stubs │ │ ├── controller.api.stub │ │ ├── controller.invokable.stub │ │ ├── controller.model.api.stub │ │ ├── controller.model.stub │ │ ├── controller.nested.api.stub │ │ ├── controller.nested.stub │ │ ├── controller.plain.stub │ │ ├── controller.stub │ │ └── middleware.stub ├── Contracts │ └── ControllerDispatcher.php ├── Controller.php ├── ControllerDispatcher.php ├── ControllerMiddlewareOptions.php ├── CreatesRegularExpressionRouteConstraints.php ├── Events │ └── RouteMatched.php ├── Exceptions │ ├── InvalidSignatureException.php │ └── UrlGenerationException.php ├── ImplicitRouteBinding.php ├── LICENSE.md ├── Matching │ ├── HostValidator.php │ ├── MethodValidator.php │ ├── SchemeValidator.php │ ├── UriValidator.php │ └── ValidatorInterface.php ├── Middleware │ ├── SubstituteBindings.php │ ├── ThrottleRequests.php │ ├── ThrottleRequestsWithRedis.php │ └── ValidateSignature.php ├── MiddlewareNameResolver.php ├── PendingResourceRegistration.php ├── Pipeline.php ├── RedirectController.php ├── Redirector.php ├── ResourceRegistrar.php ├── ResponseFactory.php ├── Route.php ├── RouteAction.php ├── RouteBinding.php ├── RouteCollection.php ├── RouteCollectionInterface.php ├── RouteDependencyResolverTrait.php ├── RouteFileRegistrar.php ├── RouteGroup.php ├── RouteParameterBinder.php ├── RouteRegistrar.php ├── RouteSignatureParameters.php ├── RouteUri.php ├── RouteUrlGenerator.php ├── Router.php ├── RoutingServiceProvider.php ├── SortedMiddleware.php ├── UrlGenerator.php ├── ViewController.php └── composer.json ├── Session ├── ArraySessionHandler.php ├── CacheBasedSessionHandler.php ├── Console │ ├── SessionTableCommand.php │ └── stubs │ │ └── database.stub ├── CookieSessionHandler.php ├── DatabaseSessionHandler.php ├── EncryptedStore.php ├── ExistenceAwareInterface.php ├── FileSessionHandler.php ├── LICENSE.md ├── Middleware │ ├── AuthenticateSession.php │ └── StartSession.php ├── NullSessionHandler.php ├── SessionManager.php ├── SessionServiceProvider.php ├── Store.php ├── TokenMismatchException.php └── composer.json ├── Support ├── AggregateServiceProvider.php ├── Carbon.php ├── Composer.php ├── ConfigurationUrlParser.php ├── DateFactory.php ├── Env.php ├── Facades │ ├── App.php │ ├── Artisan.php │ ├── Auth.php │ ├── Blade.php │ ├── Broadcast.php │ ├── Bus.php │ ├── Cache.php │ ├── Config.php │ ├── Cookie.php │ ├── Crypt.php │ ├── DB.php │ ├── Date.php │ ├── Event.php │ ├── Facade.php │ ├── File.php │ ├── Gate.php │ ├── Hash.php │ ├── Http.php │ ├── Lang.php │ ├── Log.php │ ├── Mail.php │ ├── Notification.php │ ├── ParallelTesting.php │ ├── Password.php │ ├── Queue.php │ ├── RateLimiter.php │ ├── Redirect.php │ ├── Redis.php │ ├── Request.php │ ├── Response.php │ ├── Route.php │ ├── Schema.php │ ├── Session.php │ ├── Storage.php │ ├── URL.php │ ├── Validator.php │ └── View.php ├── Fluent.php ├── HigherOrderTapProxy.php ├── HtmlString.php ├── InteractsWithTime.php ├── Js.php ├── LICENSE.md ├── Manager.php ├── MessageBag.php ├── MultipleInstanceManager.php ├── NamespacedItemResolver.php ├── Optional.php ├── Pluralizer.php ├── ProcessUtils.php ├── Reflector.php ├── ServiceProvider.php ├── Str.php ├── Stringable.php ├── Testing │ └── Fakes │ │ ├── BatchRepositoryFake.php │ │ ├── BusFake.php │ │ ├── EventFake.php │ │ ├── MailFake.php │ │ ├── NotificationFake.php │ │ ├── PendingBatchFake.php │ │ ├── PendingChainFake.php │ │ ├── PendingMailFake.php │ │ └── QueueFake.php ├── Timebox.php ├── Traits │ ├── CapsuleManagerTrait.php │ ├── Conditionable.php │ ├── ForwardsCalls.php │ ├── Localizable.php │ ├── ReflectsClosures.php │ └── Tappable.php ├── ValidatedInput.php ├── ViewErrorBag.php ├── composer.json └── helpers.php ├── Testing ├── Assert.php ├── AssertableJsonString.php ├── Concerns │ └── TestDatabases.php ├── Constraints │ ├── ArraySubset.php │ ├── CountInDatabase.php │ ├── HasInDatabase.php │ ├── NotSoftDeletedInDatabase.php │ ├── SeeInOrder.php │ └── SoftDeletedInDatabase.php ├── Fluent │ ├── AssertableJson.php │ └── Concerns │ │ ├── Debugging.php │ │ ├── Has.php │ │ ├── Interaction.php │ │ └── Matching.php ├── LICENSE.md ├── LoggedExceptionCollection.php ├── ParallelConsoleOutput.php ├── ParallelRunner.php ├── ParallelTesting.php ├── ParallelTestingServiceProvider.php ├── PendingCommand.php ├── TestComponent.php ├── TestResponse.php ├── TestView.php └── composer.json ├── Translation ├── ArrayLoader.php ├── FileLoader.php ├── LICENSE.md ├── MessageSelector.php ├── TranslationServiceProvider.php ├── Translator.php └── composer.json ├── Validation ├── ClosureValidationRule.php ├── Concerns │ ├── FilterEmailValidation.php │ ├── FormatsMessages.php │ ├── ReplacesAttributes.php │ └── ValidatesAttributes.php ├── ConditionalRules.php ├── DatabasePresenceVerifier.php ├── DatabasePresenceVerifierInterface.php ├── Factory.php ├── LICENSE.md ├── NotPwnedVerifier.php ├── PresenceVerifierInterface.php ├── Rule.php ├── Rules │ ├── DatabaseRule.php │ ├── Dimensions.php │ ├── Enum.php │ ├── Exists.php │ ├── In.php │ ├── NotIn.php │ ├── Password.php │ ├── RequiredIf.php │ └── Unique.php ├── UnauthorizedException.php ├── ValidatesWhenResolvedTrait.php ├── ValidationData.php ├── ValidationException.php ├── ValidationRuleParser.php ├── ValidationServiceProvider.php ├── Validator.php └── composer.json ├── View ├── AnonymousComponent.php ├── AppendableAttributeValue.php ├── Compilers │ ├── BladeCompiler.php │ ├── Compiler.php │ ├── CompilerInterface.php │ ├── ComponentTagCompiler.php │ └── Concerns │ │ ├── CompilesAuthorizations.php │ │ ├── CompilesClasses.php │ │ ├── CompilesComments.php │ │ ├── CompilesComponents.php │ │ ├── CompilesConditionals.php │ │ ├── CompilesEchos.php │ │ ├── CompilesErrors.php │ │ ├── CompilesHelpers.php │ │ ├── CompilesIncludes.php │ │ ├── CompilesInjections.php │ │ ├── CompilesJs.php │ │ ├── CompilesJson.php │ │ ├── CompilesLayouts.php │ │ ├── CompilesLoops.php │ │ ├── CompilesRawPhp.php │ │ ├── CompilesStacks.php │ │ └── CompilesTranslations.php ├── Component.php ├── ComponentAttributeBag.php ├── ComponentSlot.php ├── Concerns │ ├── ManagesComponents.php │ ├── ManagesEvents.php │ ├── ManagesLayouts.php │ ├── ManagesLoops.php │ ├── ManagesStacks.php │ └── ManagesTranslations.php ├── DynamicComponent.php ├── Engines │ ├── CompilerEngine.php │ ├── Engine.php │ ├── EngineResolver.php │ ├── FileEngine.php │ └── PhpEngine.php ├── Factory.php ├── FileViewFinder.php ├── InvokableComponentVariable.php ├── LICENSE.md ├── Middleware │ └── ShareErrorsFromSession.php ├── View.php ├── ViewException.php ├── ViewFinderInterface.php ├── ViewName.php ├── ViewServiceProvider.php └── composer.json └── Wordpress ├── Admin ├── AdminServiceProvider.php ├── Contracts │ └── Kernel.php ├── Facades │ ├── Layout.php │ ├── Notice.php │ ├── Route.php │ └── ScreenOption.php ├── Kernel.php ├── ListTable │ └── AlterPostsListTable.php ├── Notice │ ├── Message.php │ ├── NoticeManager.php │ ├── SessionStore.php │ └── Store.php ├── Routing │ ├── Controller.php │ ├── Events │ │ └── MenuMatched.php │ ├── Matching │ │ └── ScreenIdValidator.php │ ├── Menu.php │ ├── MenuCollection.php │ ├── Response.php │ ├── RouteRegistrar.php │ └── Router.php ├── Services │ └── ScreenOption.php ├── View │ ├── Action.php │ └── Layout.php └── resources │ └── views │ └── layout.blade.php ├── Application.php ├── Auth ├── AuthServiceProvider.php ├── Authenticatable.php ├── User.php ├── WpGuard.php └── WpUserProvider.php ├── Bootstrap ├── HandleExceptions.php └── HasEarlyBootstrappers.php ├── Console ├── Commands │ └── Database │ │ └── MigrationWipeCommand.php └── Kernel.php ├── Contracts ├── HasPostTitle.php └── Shortcode.php ├── Database ├── WpConnection.php ├── WpConnector.php ├── WpPdo.php └── WpPdoStatement.php ├── Dependency ├── ResourceManager.php └── ScriptQueue.php ├── Exceptions └── WpErrorException.php ├── Facades ├── L10n.php ├── Livewire.php ├── Route.php └── Shortcode.php ├── Http ├── Response.php └── Response │ ├── Concerns │ ├── HasComponents.php │ └── PostTitle.php │ ├── Content.php │ ├── Handler.php │ ├── Page.php │ ├── PassThrough.php │ └── Shortcode.php ├── Kernel.php ├── Mail └── Transport │ └── WpTransport.php ├── Middleware └── StartSession.php ├── Model ├── Concerns │ ├── GuardsAttributes.php │ ├── HasAttributes.php │ ├── HasEvents.php │ ├── HasGlobalScopes.php │ ├── HasRelationships.php │ ├── HasTimestamps.php │ ├── HidesAttributes.php │ ├── QueriesRelationships.php │ ├── QueryBuilder.php │ ├── Support.php │ ├── SupportMethods.php │ └── UserQuery.php ├── User.php └── WpUserQuery.php ├── Plugins ├── Loader.php ├── Loader │ ├── Rule.php │ └── RulesCollection.php ├── Plugin.php ├── Repository.php └── Updater.php ├── Providers └── CarbonServiceProvider.php ├── Routing ├── Matching │ ├── HookValidator.php │ └── ShortcodeValidator.php ├── Route.php ├── RouteCollection.php ├── RouteHook.php ├── Router.php └── RoutingServiceProvider.php ├── Services ├── Livewire.php └── QueryMonitor.php ├── Setting ├── Repository.php └── SettingServiceProvider.php ├── Shortcode └── ShortcodeManager.php ├── Translation ├── L10n.php └── TranslationServiceProvider.php ├── User.php ├── View ├── ClosureComponent.php ├── Component.php ├── Factory.php ├── Shortcode.php └── View.php ├── WordpressServiceProvider.php ├── helpers.php └── noop.php /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpstarter/framework/399da8bb152733f0b8196a11f44666d987ac3744/README.md -------------------------------------------------------------------------------- /src/WpStarter/Auth/Access/HandlesAuthorization.php: -------------------------------------------------------------------------------- 1 | user = $user; 35 | $this->guard = $guard; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Events/CurrentDeviceLogout.php: -------------------------------------------------------------------------------- 1 | user = $user; 35 | $this->guard = $guard; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Events/Lockout.php: -------------------------------------------------------------------------------- 1 | request = $request; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Events/Logout.php: -------------------------------------------------------------------------------- 1 | user = $user; 35 | $this->guard = $guard; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Events/OtherDeviceLogout.php: -------------------------------------------------------------------------------- 1 | user = $user; 35 | $this->guard = $guard; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Events/PasswordReset.php: -------------------------------------------------------------------------------- 1 | user = $user; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Events/Registered.php: -------------------------------------------------------------------------------- 1 | user = $user; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Events/Validated.php: -------------------------------------------------------------------------------- 1 | user = $user; 35 | $this->guard = $guard; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Events/Verified.php: -------------------------------------------------------------------------------- 1 | user = $user; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Listeners/SendEmailVerificationNotification.php: -------------------------------------------------------------------------------- 1 | user instanceof MustVerifyEmail && ! $event->user->hasVerifiedEmail()) { 19 | $event->user->sendEmailVerificationNotification(); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/WpStarter/Auth/Passwords/CanResetPassword.php: -------------------------------------------------------------------------------- 1 | email; 17 | } 18 | 19 | /** 20 | * Send the password reset notification. 21 | * 22 | * @param string $token 23 | * @return void 24 | */ 25 | public function sendPasswordResetNotification($token) 26 | { 27 | $this->notify(new ResetPasswordNotification($token)); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/WpStarter/Broadcasting/BroadcastController.php: -------------------------------------------------------------------------------- 1 | hasSession()) { 20 | $request->session()->reflash(); 21 | } 22 | 23 | return Broadcast::auth($request); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/WpStarter/Broadcasting/BroadcastException.php: -------------------------------------------------------------------------------- 1 | name = $name instanceof HasBroadcastChannel ? $name->broadcastChannel() : $name; 25 | } 26 | 27 | /** 28 | * Convert the channel instance to a string. 29 | * 30 | * @return string 31 | */ 32 | public function __toString() 33 | { 34 | return $this->name; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/WpStarter/Broadcasting/EncryptedPrivateChannel.php: -------------------------------------------------------------------------------- 1 | socket = Broadcast::socket(); 24 | 25 | return $this; 26 | } 27 | 28 | /** 29 | * Broadcast the event to everyone. 30 | * 31 | * @return $this 32 | */ 33 | public function broadcastToEveryone() 34 | { 35 | $this->socket = null; 36 | 37 | return $this; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/WpStarter/Broadcasting/PresenceChannel.php: -------------------------------------------------------------------------------- 1 | broadcastChannel() : $name; 18 | 19 | parent::__construct('private-'.$name); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/WpStarter/Bus/Events/BatchDispatched.php: -------------------------------------------------------------------------------- 1 | batch = $batch; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Bus/PrunableBatchRepository.php: -------------------------------------------------------------------------------- 1 | value = $value; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/WpStarter/Cache/Events/CacheMissed.php: -------------------------------------------------------------------------------- 1 | value = $value; 35 | $this->seconds = $seconds; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/WpStarter/Cache/HasCacheLock.php: -------------------------------------------------------------------------------- 1 | lock($name, 0, $owner); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/WpStarter/Cache/LuaScripts.php: -------------------------------------------------------------------------------- 1 | artisan = $artisan; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Console/Events/ScheduledBackgroundTaskFinished.php: -------------------------------------------------------------------------------- 1 | task = $task; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Console/Events/ScheduledTaskFailed.php: -------------------------------------------------------------------------------- 1 | task = $task; 34 | $this->exception = $exception; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/WpStarter/Console/Events/ScheduledTaskFinished.php: -------------------------------------------------------------------------------- 1 | task = $task; 33 | $this->runtime = $runtime; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/WpStarter/Console/Events/ScheduledTaskSkipped.php: -------------------------------------------------------------------------------- 1 | task = $task; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Console/Events/ScheduledTaskStarting.php: -------------------------------------------------------------------------------- 1 | task = $task; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Console/Scheduling/CacheAware.php: -------------------------------------------------------------------------------- 1 | app->singleton('cookie', function ($app) { 17 | $config = $app->make('config')->get('session'); 18 | 19 | return (new CookieJar)->setDefaultPathAndDomain( 20 | $config['path'], $config['domain'], $config['secure'], $config['same_site'] ?? null 21 | ); 22 | }); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Cookie/CookieValuePrefix.php: -------------------------------------------------------------------------------- 1 | model = $class; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Concerns/ExplainsQueries.php: -------------------------------------------------------------------------------- 1 | toSql(); 17 | 18 | $bindings = $this->getBindings(); 19 | 20 | $explanation = $this->getConnection()->select('EXPLAIN '.$sql, $bindings); 21 | 22 | return new Collection($explanation); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Database/ConfigurationUrlParser.php: -------------------------------------------------------------------------------- 1 | find($id); 22 | 23 | if ($instance) { 24 | return $instance; 25 | } 26 | 27 | throw new EntityNotFoundException($type, $id); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Eloquent/Relations/Pivot.php: -------------------------------------------------------------------------------- 1 | connection = $connection; 30 | $this->connectionName = $connection->getName(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Events/DatabaseRefreshed.php: -------------------------------------------------------------------------------- 1 | method = $method; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Events/MigrationsStarted.php: -------------------------------------------------------------------------------- 1 | model = $model; 31 | $this->count = $count; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Events/NoPendingMigrations.php: -------------------------------------------------------------------------------- 1 | method = $method; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Events/StatementPrepared.php: -------------------------------------------------------------------------------- 1 | statement = $statement; 31 | $this->connection = $connection; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Events/TransactionBeginning.php: -------------------------------------------------------------------------------- 1 | connection; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Migrations/stubs/migration.create.stub: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->timestamps(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::dropIfExists('{{ table }}'); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Migrations/stubs/migration.stub: -------------------------------------------------------------------------------- 1 | column_name; 17 | }, $results); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/WpStarter/Database/Query/Processors/SQLiteProcessor.php: -------------------------------------------------------------------------------- 1 | name; 17 | }, $results); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/WpStarter/Database/RecordsNotFoundException.php: -------------------------------------------------------------------------------- 1 | app->singleton('events', function ($app) { 18 | return (new Dispatcher($app))->setQueueResolver(function () use ($app) { 19 | return $app->make(QueueFactoryContract::class); 20 | }); 21 | }); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/WpStarter/Events/functions.php: -------------------------------------------------------------------------------- 1 | boot(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Bootstrap/RegisterFacades.php: -------------------------------------------------------------------------------- 1 | make('config')->get('app.aliases', []), 26 | $app->make(PackageManifest::class)->aliases() 27 | ))->register(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Bootstrap/RegisterProviders.php: -------------------------------------------------------------------------------- 1 | registerConfiguredProviders(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Bus/PendingClosureDispatch.php: -------------------------------------------------------------------------------- 1 | job->onFailure($callback); 18 | 19 | return $this; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/EnvironmentCommand.php: -------------------------------------------------------------------------------- 1 | line('Current application environment: '.$this->laravel['env'].''); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/OptimizeCommand.php: -------------------------------------------------------------------------------- 1 | call('config:cache'); 31 | $this->call('route:cache'); 32 | 33 | $this->info('Files cached successfully!'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/channel.stub: -------------------------------------------------------------------------------- 1 | view('view.name'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/markdown-mail.stub: -------------------------------------------------------------------------------- 1 | markdown('{{ view }}'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/markdown.stub: -------------------------------------------------------------------------------- 1 | @component('mail::message') 2 | # Introduction 3 | 4 | The body of your message. 5 | 6 | @component('mail::button', ['url' => '']) 7 | Button Text 8 | @endcomponent 9 | 10 | Thanks,
11 | {{ ws_config('app.name') }} 12 | @endcomponent 13 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/model.pivot.stub: -------------------------------------------------------------------------------- 1 | get('/'); 5 | 6 | $response->assertStatus(200); 7 | }); 8 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/pest.unit.stub: -------------------------------------------------------------------------------- 1 | toBeTrue(); 5 | }); 6 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/policy.plain.stub: -------------------------------------------------------------------------------- 1 | setCompiledRoutes( 15 | {{routes}} 16 | ); 17 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/rule.stub: -------------------------------------------------------------------------------- 1 | get('/'); 19 | 20 | $response->assertStatus(200); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/test.unit.stub: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Console/stubs/view-component.stub: -------------------------------------------------------------------------------- 1 | locale = $locale; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Events/MaintenanceModeDisabled.php: -------------------------------------------------------------------------------- 1 | tag = $tag; 31 | $this->paths = $paths; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Exceptions/RegisterErrorViewPaths.php: -------------------------------------------------------------------------------- 1 | map(function ($path) { 17 | return "{$path}/errors"; 18 | })->push(__DIR__.'/views')->all()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Exceptions/views/401.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', ws___('Unauthorized')) 4 | @section('code', '401') 5 | @section('message', ws___('Unauthorized')) 6 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Exceptions/views/403.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', ws___('Forbidden')) 4 | @section('code', '403') 5 | @section('message', ws___($exception->getMessage() ?: 'Forbidden')) 6 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Exceptions/views/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', ws___('Not Found')) 4 | @section('code', '404') 5 | @section('message', ws___('Not Found')) 6 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Exceptions/views/419.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', ws___('Page Expired')) 4 | @section('code', '419') 5 | @section('message', ws___('Page Expired')) 6 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Exceptions/views/429.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', ws___('Too Many Requests')) 4 | @section('code', '429') 5 | @section('message', ws___('Too Many Requests')) 6 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Exceptions/views/500.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', ws___('Server Error')) 4 | @section('code', '500') 5 | @section('message', ws___('Server Error')) 6 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Exceptions/views/503.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', ws___('Service Unavailable')) 4 | @section('code', '503') 5 | @section('message', ws___('Service Unavailable')) 6 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Http/Events/RequestHandled.php: -------------------------------------------------------------------------------- 1 | request = $request; 31 | $this->response = $response; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Http/Middleware/CheckForMaintenanceMode.php: -------------------------------------------------------------------------------- 1 | app->singleton('composer', function ($app) { 19 | return new Composer($app['files'], $app->basePath()); 20 | }); 21 | } 22 | 23 | /** 24 | * Get the services provided by the provider. 25 | * 26 | * @return array 27 | */ 28 | public function provides() 29 | { 30 | return ['composer']; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Providers/ConsoleSupportServiceProvider.php: -------------------------------------------------------------------------------- 1 | artisan('migrate:fresh', $this->migrateFreshUsing()); 20 | 21 | $this->app[Kernel::class]->setArtisan(null); 22 | 23 | $this->beforeApplicationDestroyed(function () { 24 | $this->artisan('migrate:rollback'); 25 | 26 | RefreshDatabaseState::$migrated = false; 27 | }); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Testing/RefreshDatabaseState.php: -------------------------------------------------------------------------------- 1 | withoutEvents(); 18 | } else { 19 | throw new Exception('Unable to disable events. ApplicationTrait not used.'); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/Testing/WithoutMiddleware.php: -------------------------------------------------------------------------------- 1 | withoutMiddleware(); 18 | } else { 19 | throw new Exception('Unable to disable middleware. MakesHttpRequests trait not used.'); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/WpStarter/Foundation/stubs/facade.stub: -------------------------------------------------------------------------------- 1 | request = $request; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Http/Client/Events/RequestSending.php: -------------------------------------------------------------------------------- 1 | request = $request; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Http/Client/HttpClientException.php: -------------------------------------------------------------------------------- 1 | isNotModified($request); 23 | } 24 | 25 | return $response; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/WpStarter/Http/Middleware/FrameGuard.php: -------------------------------------------------------------------------------- 1 | headers->set('X-Frame-Options', 'SAMEORIGIN', false); 21 | 22 | return $response; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Http/Resources/Json/AnonymousResourceCollection.php: -------------------------------------------------------------------------------- 1 | collects = $collects; 24 | 25 | parent::__construct($resource); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/WpStarter/Http/Resources/MergeValue.php: -------------------------------------------------------------------------------- 1 | data = $data->all(); 27 | } elseif ($data instanceof JsonSerializable) { 28 | $this->data = $data->jsonSerialize(); 29 | } else { 30 | $this->data = $data; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Http/Resources/MissingValue.php: -------------------------------------------------------------------------------- 1 | level = $level; 39 | $this->message = $message; 40 | $this->context = $context; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/WpStarter/Log/LogServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->singleton('log', function ($app) { 17 | return new LogManager($app); 18 | }); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/Events/MessageSending.php: -------------------------------------------------------------------------------- 1 | data = $data; 31 | $this->message = $message; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/html/button.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/html/footer.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/html/header.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @if (trim($slot) === 'Laravel') 5 | 6 | @else 7 | {{ $slot }} 8 | @endif 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/html/message.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::layout') 2 | {{-- Header --}} 3 | @slot('header') 4 | @component('mail::header', ['url' => ws_config('app.url')]) 5 | {{ ws_config('app.name') }} 6 | @endcomponent 7 | @endslot 8 | 9 | {{-- Body --}} 10 | {{ $slot }} 11 | 12 | {{-- Subcopy --}} 13 | @isset($subcopy) 14 | @slot('subcopy') 15 | @component('mail::subcopy') 16 | {{ $subcopy }} 17 | @endcomponent 18 | @endslot 19 | @endisset 20 | 21 | {{-- Footer --}} 22 | @slot('footer') 23 | @component('mail::footer') 24 | © {{ date('Y') }} {{ ws_config('app.name') }}. @lang('All rights reserved.') 25 | @endcomponent 26 | @endslot 27 | @endcomponent 28 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/html/panel.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/html/subcopy.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/html/table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {{ WpStarter\Mail\Markdown::parse($slot) }} 3 |
4 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/text/button.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }}: {{ $url }} 2 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/text/footer.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/text/header.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/text/layout.blade.php: -------------------------------------------------------------------------------- 1 | {!! strip_tags($header) !!} 2 | 3 | {!! strip_tags($slot) !!} 4 | @isset($subcopy) 5 | 6 | {!! strip_tags($subcopy) !!} 7 | @endisset 8 | 9 | {!! strip_tags($footer) !!} 10 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/text/message.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::layout') 2 | {{-- Header --}} 3 | @slot('header') 4 | @component('mail::header', ['url' => ws_config('app.url')]) 5 | {{ ws_config('app.name') }} 6 | @endcomponent 7 | @endslot 8 | 9 | {{-- Body --}} 10 | {{ $slot }} 11 | 12 | {{-- Subcopy --}} 13 | @isset($subcopy) 14 | @slot('subcopy') 15 | @component('mail::subcopy') 16 | {{ $subcopy }} 17 | @endcomponent 18 | @endslot 19 | @endisset 20 | 21 | {{-- Footer --}} 22 | @slot('footer') 23 | @component('mail::footer') 24 | © {{ date('Y') }} {{ ws_config('app.name') }}. @lang('All rights reserved.') 25 | @endcomponent 26 | @endslot 27 | @endcomponent 28 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/text/panel.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/text/subcopy.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /src/WpStarter/Mail/resources/views/text/table.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /src/WpStarter/Notifications/Action.php: -------------------------------------------------------------------------------- 1 | url = $url; 31 | $this->text = $text; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Notifications/DatabaseNotificationCollection.php: -------------------------------------------------------------------------------- 1 | each->markAsRead(); 17 | } 18 | 19 | /** 20 | * Mark all notifications as unread. 21 | * 22 | * @return void 23 | */ 24 | public function markAsUnread() 25 | { 26 | $this->each->markAsUnread(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/WpStarter/Notifications/Messages/BroadcastMessage.php: -------------------------------------------------------------------------------- 1 | data = $data; 27 | } 28 | 29 | /** 30 | * Set the message data. 31 | * 32 | * @param array $data 33 | * @return $this 34 | */ 35 | public function data($data) 36 | { 37 | $this->data = $data; 38 | 39 | return $this; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/WpStarter/Notifications/Messages/DatabaseMessage.php: -------------------------------------------------------------------------------- 1 | data = $data; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Notifications/Notifiable.php: -------------------------------------------------------------------------------- 1 | hasPages()) 2 | 19 | @endif 20 | -------------------------------------------------------------------------------- /src/WpStarter/Pipeline/PipelineServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->singleton( 19 | PipelineHubContract::class, Hub::class 20 | ); 21 | } 22 | 23 | /** 24 | * Get the services provided by the provider. 25 | * 26 | * @return array 27 | */ 28 | public function provides() 29 | { 30 | return [ 31 | PipelineHubContract::class, 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/WpStarter/Queue/Connectors/ConnectorInterface.php: -------------------------------------------------------------------------------- 1 | laravel['queue.failer']->flush(); 31 | 32 | $this->info('All failed jobs deleted successfully!'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/WpStarter/Queue/Events/JobProcessed.php: -------------------------------------------------------------------------------- 1 | job = $job; 31 | $this->connectionName = $connectionName; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Queue/Events/JobProcessing.php: -------------------------------------------------------------------------------- 1 | job = $job; 31 | $this->connectionName = $connectionName; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Queue/Events/Looping.php: -------------------------------------------------------------------------------- 1 | queue = $queue; 31 | $this->connectionName = $connectionName; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Queue/Events/QueueBusy.php: -------------------------------------------------------------------------------- 1 | connection = $connection; 39 | $this->queue = $queue; 40 | $this->size = $size; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/WpStarter/Queue/Events/WorkerStopping.php: -------------------------------------------------------------------------------- 1 | status = $status; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Queue/Failed/PrunableFailedJobProvider.php: -------------------------------------------------------------------------------- 1 | connectionName = $connectionName; 12 | $this->id = $id; 13 | $this->queue = $queue; 14 | $this->payload = $payload; 15 | } 16 | 17 | public function getJobId() 18 | { 19 | return $this->id; 20 | } 21 | 22 | public function getRawBody() 23 | { 24 | return json_encode($this->payload); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpStarter/Queue/ManuallyFailedException.php: -------------------------------------------------------------------------------- 1 | client->_masters() as $master) { 19 | $async 20 | ? $this->command('rawCommand', [$master, 'flushdb', 'async']) 21 | : $this->command('flushdb', [$master]); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/WpStarter/Redis/Connections/PredisClusterConnection.php: -------------------------------------------------------------------------------- 1 | client->executeCommandOnNodes( 17 | ws_tap(new ServerFlushDatabase)->setArguments(func_get_args()) 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/WpStarter/Routing/Console/stubs/controller.invokable.stub: -------------------------------------------------------------------------------- 1 | route = $route; 31 | $this->request = $request; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/WpStarter/Routing/Exceptions/InvalidSignatureException.php: -------------------------------------------------------------------------------- 1 | getCompiled()->getHostRegex(); 20 | 21 | if (is_null($hostRegex)) { 22 | return true; 23 | } 24 | 25 | return preg_match($hostRegex, $request->getHost()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/WpStarter/Routing/Matching/MethodValidator.php: -------------------------------------------------------------------------------- 1 | getMethod(), $route->methods()); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/WpStarter/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/WpStarter/Routing/Matching/UriValidator.php: -------------------------------------------------------------------------------- 1 | getPathInfo(), '/') ?: '/'; 20 | 21 | return preg_match($route->getCompiled()->getRegex(), rawurldecode($path)); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/WpStarter/Routing/Matching/ValidatorInterface.php: -------------------------------------------------------------------------------- 1 | hasValidSignature($relative !== 'relative')) { 23 | return $next($request); 24 | } 25 | 26 | throw new InvalidSignatureException; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/WpStarter/Routing/RouteFileRegistrar.php: -------------------------------------------------------------------------------- 1 | router = $router; 23 | } 24 | 25 | /** 26 | * Require the given routes file. 27 | * 28 | * @param string $routes 29 | * @return void 30 | */ 31 | public function register($routes) 32 | { 33 | $router = $this->router; 34 | 35 | require $routes; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/WpStarter/Session/ExistenceAwareInterface.php: -------------------------------------------------------------------------------- 1 | target = $target; 23 | } 24 | 25 | /** 26 | * Dynamically pass method calls to the target. 27 | * 28 | * @param string $method 29 | * @param array $parameters 30 | * @return mixed 31 | */ 32 | public function __call($method, $parameters) 33 | { 34 | $this->target->{$method}(...$parameters); 35 | 36 | return $this->target; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/WpStarter/Support/Traits/Localizable.php: -------------------------------------------------------------------------------- 1 | getLocale(); 25 | 26 | try { 27 | $app->setLocale($locale); 28 | 29 | return $callback(); 30 | } finally { 31 | $app->setLocale($original); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/WpStarter/Support/Traits/Tappable.php: -------------------------------------------------------------------------------- 1 | value = $value; 23 | } 24 | 25 | /** 26 | * Get the string value. 27 | * 28 | * @return string 29 | */ 30 | public function __toString() 31 | { 32 | return (string) $this->value; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/WpStarter/View/Compilers/CompilerInterface.php: -------------------------------------------------------------------------------- 1 | \""; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/WpStarter/View/Compilers/Concerns/CompilesComments.php: -------------------------------------------------------------------------------- 1 | contentTags[0], $this->contentTags[1]); 16 | 17 | return preg_replace($pattern, '', $value); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/WpStarter/View/Compilers/Concerns/CompilesInjections.php: -------------------------------------------------------------------------------- 1 | "; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/WpStarter/View/Compilers/Concerns/CompilesJs.php: -------------------------------------------------------------------------------- 1 | toHtml() ?>", 19 | Js::class, $this->stripParentheses($expression) 20 | ); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/WpStarter/View/Compilers/Concerns/CompilesJson.php: -------------------------------------------------------------------------------- 1 | stripParentheses($expression)); 23 | 24 | $options = isset($parts[1]) ? trim($parts[1]) : $this->encodingOptions; 25 | 26 | $depth = isset($parts[2]) ? trim($parts[2]) : 512; 27 | 28 | return ""; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/WpStarter/View/Compilers/Concerns/CompilesRawPhp.php: -------------------------------------------------------------------------------- 1 | "; 17 | } 18 | 19 | return '@php'; 20 | } 21 | 22 | /** 23 | * Compile the unset statements into valid PHP. 24 | * 25 | * @param string $expression 26 | * @return string 27 | */ 28 | protected function compileUnset($expression) 29 | { 30 | return ""; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/WpStarter/View/Engines/Engine.php: -------------------------------------------------------------------------------- 1 | lastRendered; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/WpStarter/View/ViewName.php: -------------------------------------------------------------------------------- 1 | session=$manager; 13 | } 14 | 15 | function put($notices) 16 | { 17 | $this->session->put('admin.notices',$notices); 18 | } 19 | 20 | function get() 21 | { 22 | return $this->session->get('admin.notices',[]); 23 | } 24 | 25 | function pull(){ 26 | return $this->session->pull('admin.notices',[]); 27 | } 28 | 29 | function forget() 30 | { 31 | return $this->session->forget('admin.notices'); 32 | } 33 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Admin/Notice/Store.php: -------------------------------------------------------------------------------- 1 | menu = $menu; 33 | $this->request = $request; 34 | } 35 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Admin/Routing/Matching/ScreenIdValidator.php: -------------------------------------------------------------------------------- 1 | hookSuffix==$current_screen->id; 22 | } 23 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Admin/Routing/MenuCollection.php: -------------------------------------------------------------------------------- 1 | getDomain().$route->getAction('parent').$route->uri(); 12 | 13 | foreach ($route->methods() as $method) { 14 | $this->routes[$method][$domainAndUri] = $route; 15 | } 16 | 17 | $this->allRoutes[$method.$domainAndUri] = $route; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Admin/Routing/Response.php: -------------------------------------------------------------------------------- 1 | text=$text; 16 | $this->link=$link; 17 | $this->desc=$desc; 18 | } 19 | public function getLink(){ 20 | return $this->link; 21 | } 22 | public function getText(){ 23 | return $this->text; 24 | } 25 | public function getDesc(){ 26 | return $this->desc; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Contracts/HasPostTitle.php: -------------------------------------------------------------------------------- 1 | code = $code; 17 | } 18 | 19 | public function setWpError(WP_Error $error) 20 | { 21 | $this->wp_error = $error; 22 | return $this; 23 | } 24 | 25 | /** 26 | * @return WP_Error|null 27 | */ 28 | public function getWpError() 29 | { 30 | return $this->wp_error; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Facades/L10n.php: -------------------------------------------------------------------------------- 1 | postTitle = $title; 12 | return $this; 13 | } 14 | 15 | function getPostTitle($title = null) 16 | { 17 | if ($this->postTitle) { 18 | return static::unwrapIfClosure($this->postTitle, $title); 19 | } 20 | return $title; 21 | } 22 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Http/Response/Page.php: -------------------------------------------------------------------------------- 1 | hook = [$hook, $priority]; 14 | return $this; 15 | } 16 | 17 | public function onWpLoaded($priority = 10) 18 | { 19 | return $this->on('wp_loaded', $priority); 20 | } 21 | 22 | public function onWp($priority = 10) 23 | { 24 | return $this->on('wp', $priority); 25 | } 26 | 27 | public function onTemplateRedirect($priority = 10) 28 | { 29 | return $this->on('template_redirect', $priority); 30 | } 31 | 32 | public function getHook() 33 | { 34 | return $this->hook; 35 | } 36 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Http/Response/PassThrough.php: -------------------------------------------------------------------------------- 1 | model = $model; 12 | $this->query->from($model->getTable()); 13 | return $this; 14 | } 15 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Model/Concerns/Support.php: -------------------------------------------------------------------------------- 1 | $value) { 10 | $data->{$key} = $value; 11 | } 12 | return $data; 13 | } 14 | 15 | public static function dataMap($callback, $data) 16 | { 17 | foreach ($data as $key => $value) { 18 | $data->{$key} = $callback($value); 19 | } 20 | return $data; 21 | } 22 | 23 | public static function dataKeyExists($key, $data) 24 | { 25 | return array_key_exists($key, (array)$data); 26 | } 27 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Model/Concerns/SupportMethods.php: -------------------------------------------------------------------------------- 1 | init($data); 18 | return $model; 19 | } 20 | return null; 21 | } 22 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Routing/RouteHook.php: -------------------------------------------------------------------------------- 1 | action['hook']=$hook.($priority?(':'.$priority):''); 14 | return $this; 15 | }; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Routing/RoutingServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->singleton('wp.router', function ($app) { 13 | return new Router($app['events'], $app); 14 | }); 15 | $this->app->alias('wp.router', Router::class); 16 | } 17 | 18 | function boot() 19 | { 20 | \WpStarter\Routing\Route::mixin(new RouteHook()); 21 | \WpStarter\Routing\Route::$validators=array_merge(\WpStarter\Routing\Route::getValidators(), [new HookValidator()]); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/Translation/TranslationServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->singleton('l10n',function($app){ 12 | return new L10n($app['config']); 13 | }); 14 | $this->app->alias('l10n',L10n::class); 15 | } 16 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/User.php: -------------------------------------------------------------------------------- 1 | closure = $closure; 12 | } 13 | 14 | public function render() 15 | { 16 | $closure = $this->closure; 17 | return $closure($this->data); 18 | } 19 | } -------------------------------------------------------------------------------- /src/WpStarter/Wordpress/View/View.php: -------------------------------------------------------------------------------- 1 | view = $view; 13 | } 14 | 15 | public function prepare($prepare) 16 | { 17 | $this->preparerers[] = $prepare; 18 | return $this; 19 | } 20 | 21 | public function render() 22 | { 23 | foreach ($this->preparerers as $preparerer) { 24 | $this->data = $preparerer($this->data); 25 | } 26 | return ws_view($this->view, $this->data)->render(); 27 | } 28 | } --------------------------------------------------------------------------------