open-admin icon indicating copy to clipboard operation
open-admin copied to clipboard

Scaffold usage errors in Laravel 11

Open samadelowokan opened this issue 1 year ago • 4 comments

Please help to adjust compatibility for Laravel 11. I am unable to use the Scaffold helpers to create models and tables. Yet doctrines has been removed in Laravel 11

Clicking on Scaffold on the admin section gives error. Error: Method Illuminate\Database\MySqlConnection::getDoctrineDriver does not exist.

Please help to adjust compatibility for Laravel 11.

System

  • Open-admin 1.0
  • PHP version 8.2.4
  • Laravel Version 11.1.1
  • Win OS
  • Chrome Browser

Thank You Captureasa

samadelowokan avatar Mar 30 '24 02:03 samadelowokan

copy that error, run it through gpt, it will tell you what you can do, else google it, i had a similar issue regarding postgresql and doctrine, i just changed package after showing the message to gpt... most likely to do with your composer defined version of doctrine or perhaps not even installed. Difficult to say from the little you provide on the error

RCyrix avatar Apr 09 '24 17:04 RCyrix

Same issue here... No results when you google it! I'm installing laravel 10.x to avoid it

yuryja avatar Apr 14 '24 00:04 yuryja

Hello @samadelowokan To use OpenAdmin in Laravel 11, you have to replace one file of that package: src/Console/ResourceGenerator.php

You can find it from OpenAdmin official github repo. Just replace the https://github.com/open-admin-org/open-admin/blob/develop/src/Console/ResourceGenerator.php file with your OpenAdmin main openadmin package file, then the resource generator will work smoothly.

nkuldip avatar Dec 25 '24 06:12 nkuldip

when creating the Scaffold I’m getting error : Method Illuminate\Database\MySqlConnection::isDoctrineAvailable does not

I'm using Laravel 11

Sapirin avatar Jan 31 '25 08:01 Sapirin