fixed migtrations #22
@@ -7,6 +7,7 @@ use Carbon\CarbonImmutable;
|
|||||||
use Illuminate\Support\Facades\Date;
|
use Illuminate\Support\Facades\Date;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
|
use Illuminate\Support\Facades\URL;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Illuminate\Validation\Rules\Password;
|
use Illuminate\Validation\Rules\Password;
|
||||||
|
|
||||||
@@ -25,6 +26,11 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if ($this->app->environment() !== 'local') {
|
||||||
|
URL::forceScheme('https');
|
||||||
|
}
|
||||||
|
|
||||||
$this->configureAuthorization();
|
$this->configureAuthorization();
|
||||||
$this->configureDefaults();
|
$this->configureDefaults();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ return new class extends Migration
|
|||||||
'provider',
|
'provider',
|
||||||
'base_url',
|
'base_url',
|
||||||
'provider_repository_id',
|
'provider_repository_id',
|
||||||
]);
|
], 'repo_connections_project_provider_repo_unique');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user