GithubHelp home page GithubHelp logo

Laravel 11 support about laravel HOT 10 OPEN

osama-98 avatar osama-98 commented on May 24, 2024 4
Laravel 11 support

from laravel.

Comments (10)

uacode avatar uacode commented on May 24, 2024 2

@osama-98 I commented in vendor (only for run DB migrations)

\Reliese\Meta\MySql\Schema::schemas

public static function schemas(Connection $connection)
    {
//        $schemas = $connection->getDoctrineSchemaManager()->listDatabases();
//        Schema::getDatabases();
        $schemas = [];

        return array_diff($schemas, [
            'information_schema',
            'sys',
            'mysql',
            'performance_schema',
        ]);
    }

from laravel.

igun997 avatar igun997 commented on May 24, 2024 2

@uacode This is explaining why the error is being thrown. But, how to solve it?

I resolved it on PR #208 you can direct edit your vendor folder

from laravel.

uacode avatar uacode commented on May 24, 2024

laravel/framework#48864

Removes DB::getDoctrineSchemaManager() method

from laravel.

igun997 avatar igun997 commented on May 24, 2024

you can modify like this , it cause doctrine types not supported on laravel 11

#208

from laravel.

osama-98 avatar osama-98 commented on May 24, 2024

@uacode
This is explaining why the error is being thrown. But, how to solve it?

from laravel.

vibonacci avatar vibonacci commented on May 24, 2024

Could somebody please review and merge? New Laravel devs cannot use this as they start with Laravel 11 and will be forced to make their own Model files: 1 for each table.

from laravel.

alphageek01 avatar alphageek01 commented on May 24, 2024

@igun997 Your PR doesn't fix the issue completely.
There are still calls to the getDoctrineSchemaManager (in ...Postgres/Schema.php) which was removed in v11.

from laravel.

igun997 avatar igun997 commented on May 24, 2024

@igun997 Your PR doesn't fix the issue completely. There are still calls to the getDoctrineSchemaManager (in ...Postgres/Schema.php) which was removed in v11.

ah , i forget about it. coz i use mysql & mariadb as primary databases

from laravel.

aavinseth avatar aavinseth commented on May 24, 2024

any update on this? as still I am getting the Method Illuminate\Database\MySqlConnection::getDoctrineSchemaManager does not exist. error while runing the php artisan code:models command

from laravel.

realitymatters avatar realitymatters commented on May 24, 2024

any update on this? as still I am getting the Method Illuminate\Database\MySqlConnection::getDoctrineSchemaManager does not exist. error while runing the php artisan code:models command

Look a couple of comments back, this workaround works.

#273 (comment)

from laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.