From b34b9f012ccb099909652fa78ddc3896dbd6c2c7 Mon Sep 17 00:00:00 2001 From: Osita Ugwueze <54801980+OsitaDNU@users.noreply.github.com> Date: Mon, 4 Aug 2025 00:00:23 +0000 Subject: [PATCH 1/2] fix: Update uses of bigInt to unsignedBigInteger --- installation.md | 4 ++-- service-overrides.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/installation.md b/installation.md index 8c88969..54550f1 100644 --- a/installation.md +++ b/installation.md @@ -143,12 +143,12 @@ If you plan to continue with this driver, you'll need to add two columns to the ```php $table->string('tenancy')->nullable(); -$table->bigInt('tenant_id')->nullable(); +$table->unsignedBigIntegereger('tenant_id')->nullable(); ``` > [!NOTE] > The `tenant_id` column should match the primary key of your tenant model, which by default within Laravel would -> be `BIGINT`, which is why `bigInt()` is used here. +> be `BIGINT`, which is why `unsignedBigInteger()` is used here. The only other thing to consider here is that if you encounter CSRF issues when you first get started, clear your cookies in your browser, and it'll fix the issue. diff --git a/service-overrides.md b/service-overrides.md index 4403134..faa3c76 100644 --- a/service-overrides.md +++ b/service-overrides.md @@ -277,7 +277,7 @@ to the `password_resets` table in the Schema::create('password_reset_tokens', function (Blueprint $table) { $table->string('email')->primary(); $table->string('tenancy')->nullable();// [tl! ++] - $table->bigInt('tenant_id')->nullable();// [tl! ++] + $table->unsignedBigInteger('tenant_id')->nullable();// [tl! ++] $table->string('token'); $table->timestamp('created_at')->nullable(); }); @@ -285,7 +285,7 @@ Schema::create('password_reset_tokens', function (Blueprint $table) { > [!NOTE] > The `tenant_id` column should match the primary key of your tenant model, which by default within Laravel would -> be `BIGINT`, which is why `bigInt()` is used here. +> be `BIGINT`, which is why `unsignedBigInteger()` is used here. ### Cookie @@ -344,7 +344,7 @@ to include the tenant-specific columns. Schema::create('sessions', function (Blueprint $table) { $table->string('id')->primary(); $table->string('tenancy')->nullable();// [tl! ++] - $table->bigInt('tenant_id')->nullable();// [tl! ++] + $table->unsignedBigInteger('tenant_id')->nullable();// [tl! ++] $table->foreignId('user_id')->nullable()->index(); $table->string('ip_address', 45)->nullable(); $table->text('user_agent')->nullable(); From afbf24e6d90433ceeba90cb5b2c3f8653c556730 Mon Sep 17 00:00:00 2001 From: Osita Ugwueze <54801980+OsitaDNU@users.noreply.github.com> Date: Mon, 4 Aug 2025 00:03:26 +0000 Subject: [PATCH 2/2] fix: Correct file path for manual service provider registration in installation guide --- installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation.md b/installation.md index 54550f1..41d2745 100644 --- a/installation.md +++ b/installation.md @@ -32,7 +32,7 @@ composer require sprout/sprout Sprout is configured to make use of Laravel's package auto-discovery, so its service provider should be automatically registered. If you have this disabled, it's not working for some reason, or you'd like to manually control where Sprout is loaded, -you can manually register it in `bootstrap/app.php`, before your `AppServiceProvider`. +you can manually register it in `bootstrap/providers.php`, before your `AppServiceProvider`. ```php return [