Skip to content

Commit

Permalink
Reimplemented doctrinetypemapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Severino committed Oct 14, 2024
1 parent 2d9d4da commit b0a8e4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Illuminate\Support\Facades\View;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\URL;

class AppServiceProvider extends ServiceProvider {
Expand All @@ -21,6 +22,9 @@ class AppServiceProvider extends ServiceProvider {
* @return void
*/
public function boot() {
// This will be removed in Laravel 11
DB::getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('geography', 'string');
DB::getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('geometry', 'string');

// In some Proxy setups it might be necessary to enforce using the app's url as root url
if(env('APP_FORCE_URL') === true) {
Expand Down

0 comments on commit b0a8e4d

Please sign in to comment.