Protoqol / Prequel

Prequel for Laravel. Clear and concise database management. Unfortunately, not actively maintained due to time constraints.
https://packagist.org/packages/protoqol/prequel
MIT License
1.54k stars 96 forks source link

Make MySQL the default connection type incase the project's connection type is different. #166

Closed PhillipMwaniki closed 6 months ago

PhillipMwaniki commented 6 months ago

PR Naming convention

BUG: Fix to error Undefined variable $className

Issue or feature explanation

Currently, if the user doesn't use the Laravel's default connection types, an error is thrown Undefined variable $className

image

This PR fixes Issue https://github.com/Protoqol/Prequel/issues/165

Proposed solution/change

Make MySQL the default connection in case the package can't find one of the default's connection types.