Conversation
Merge Develop
…min credentials), so Session::user() returns null. Fixed the method to handle null users: = ? ->email : null;
…ged in with credentials 2. Return api: when using API key (retrieves the app name associated with the API key) 3. Return api:... if app name can't be retrieved (uses first 8 chars of API key) 4. Return system as a fallback Now API key authentication will work without errors, and the audit logs will show meaningful identifiers like api:your-app-name instead of failing with a null constraint violation.
Identity patch when only using API Key since no user is available
Added standard overview describing DreamFactory as a secure, self-hosted enterprise data access platform for enterprise apps and on-prem LLMs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Bump PHP requirement to ^8.3 to match Laravel 13.7 - Add laravel/helpers ^1.8 to production require for array_get / camel_case / array_except polyfills (used transitively via df-core src consumers) - Widen dreamfactory/df-core constraint to ~1.0.4 (L13 base tag) - Widen dreamfactory/df-system constraint to ~0.6.2 (Wave 1 sibling baseline, required by ServiceProvider + Resources/System/ServiceReport) - Add require-dev block: laravel/framework ^13.7, mockery ^1.6, collision ^8.6, phpunit ^11.5.3, orchestra/testbench ^11.0 - Modernize phpunit.xml: drop PHPUnit 10+ removed attributes (backupStaticAttributes, convertErrors/Notices/WarningsToExceptions, syntaxCheck), add cacheDirectory and XSD schema reference - Add `: void` return type to all four tearDown() methods (PHPUnit 11 enforces signature compatibility with TestCase::tearDown(): void) - Extend .gitignore for composer.lock and .phpunit.cache artifacts No source changes required. Survey for the 32 known L13 invariants came back clean: no DispatchesJobs, no getDates() overrides, no setUpBeforeClass typos, no CorsService refs, no prependMiddlewareToGroup, no Illuminate Connection/Builder/Grammar extensions. All Illuminate imports (Router, Support\Arr/Str, Console\Command, Database\Eloquent\ModelNotFoundException, Database\Query\Builder, Contracts\Events\Dispatcher) are stable in L13. Validated via Stage 1 (isolated path-repo install with df-core + df-system on shift/laravel-13 — 17/17 classes autoload, L13.7.0 confirmed) and Stage 2 (host-app shift-173254 worktree with the standard sibling-blocker scrub list — df-mongo-logs, df-git, df-oauth, df-mcp-server stripped — 17/17 classes autoload alongside the full host-app dep graph, helper polyfills all present).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wave 4 of the L11 -> L13 upgrade campaign. Brings df-compliance onto the Laravel 13.7 dep matrix shared with df-core, df-system, df-user, df-database, and df-sqldb.
: voidreturn type to all fourtearDown()methods (PHPUnit 11 LSP enforcement)Survey results (32 L13 invariants)
$castspattern)Validation
Stage 1 (isolated install) — path-repo aliases for df-core@1.0.99, df-system@0.6.99 (both on shift/laravel-13).
composer install --no-interactionresolves cleanly.laravel/framework v13.7.0,phpunit v11.5.55,orchestra/testbench v11.1.0. 17/17 df-compliance classes + 5 df-system classes used by ServiceProvider/Resources autoload.Stage 2 (host-app integration) — host-app
shift-173254worktree with the standard Wave 1+ sibling-blocker scrub (drop df-mongo-logs, df-git, df-oauth, df-mcp-server from require + repositories; comment outMongoDB\Laravel\MongoDBServiceProvider::classin config/app.php). Add df-compliance as path-repo at 0.5.99 + require ~0.5.0.composer install --no-devresolves the full host-app graph; 17/17 df-compliance classes autoload, helper polyfills (array_get/camel_case/array_except) all present.Test plan