|
|
|
|
|
by billisonline
1792 days ago
|
|
I'm shocked no one else gave this answer earlier in the thread. If you're using PDO directly in 2021, you're absolutely doing it wrong. You don't need to use all of Laravel, or even all of Eloquent for that matter. If you don't want to depend on a framework or use an ORM, you can use "illuminate/database" (https://packagist.org/packages/illuminate/database) for a secure wrapper around PDO. No need to reinvent the wheel. |
|
This is somewhat the point. If using the language's standard libraries is "absolutely doing it wrong", that's an indictment of the language.