laravel-factory-generator icon indicating copy to clipboard operation
laravel-factory-generator copied to clipboard

Laravel 11 support

Open johnluxor opened this issue 10 months ago • 1 comments

Hello, in Laravel 11 they removed dependency on doctrine/dbal and factory generator doesn't work correctly. It cannot get table structure anymore because it used DBAL before. So there is an Exception

Method Illuminate\Database\MySqlConnection::getDoctrineSchemaManager does not exist.

in getPropertiesFromTable:210

johnluxor avatar Apr 02 '24 12:04 johnluxor

Hey @johnluxor!

You are right, looks like I'll need to use https://laravel.com/api/8.x/Illuminate/Database/Schema/Blueprint.html#method_getColumns instead for Laravel 11.x. I'll try to implement that in the upcoming weekend but feel free to open an PR.

TheDoctor0 avatar Apr 02 '24 12:04 TheDoctor0

@johnluxor done in https://github.com/TheDoctor0/laravel-factory-generator/releases/tag/1.4.0

TheDoctor0 avatar Apr 20 '24 15:04 TheDoctor0

Thank you so much!

johnluxor avatar Apr 21 '24 15:04 johnluxor