MrMoto9000 wrote a reply+100 XP
3w ago
Interesting take! I think those are good words of wisdom although the complexity you discuss I think would have been handled for you if you'd chosen React, Vue or Svelte. Laravel has starter kits for each of those, and they handle all the connection between through FE/BE for you automatically through Inertia.
MrMoto9000 wrote a reply+100 XP
2mos ago
MrMoto9000 wrote a reply+100 XP
2mos ago
MrMoto9000 wrote a comment+100 XP
2mos ago
MrMoto9000 liked a comment+100 XP
2mos ago
Great series so far, waiting on the next video.
Just a comment, I don't like that we need to pass the $username and $password in our Database class, I want something like including it in our database config so that it's streamlined.
'database' => [
'host' => 'localhost',
'port' => '3306',
'dbname' => 'php_for_beginners',
'user' => 'root',
'password' => '',
'charset' => 'utf8mb4',
]
But this will introduce an error because the new PDO accepts 4 parameters, and now we're not passing the $username and $password there.
$this->connection = new PDO($dsn, $username, $password, [
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC
]);
MrMoto9000 wrote a comment+100 XP
2mos ago
MrMoto9000 wrote a comment+100 XP
2mos ago
MrMoto9000 wrote a comment+100 XP
2mos ago
MrMoto9000 wrote a comment+100 XP
2mos ago
This was posted to the Laravel Discord a few days ago:
"i was hired by some company for a contract, they had some inhouse hospital management CRUD in symfony, like over-engineered stuff with many layers modules etc. pretty huge codebase like 10 yrs in existence. they gave me some tickets - i just pasted tickets in cursor for sonnet and commited what it proposed 😄 never bothered to actually learn the system 😄"
This is what "agentic coding" looks like in the wild.
MrMoto9000 wrote a comment+100 XP
2mos ago
I wish I could see this supposed wonderful change that happened in December 2025, because I just tried Claude and it still gave me an Eloquent query that didn't run. It still just told me that the way to get my static assets to be cached in the browser was through middleware (and when I pointed out that static assets are served directly by the server, not via Laravel, it agreed it had been wrong).
They were the first two questions I'd asked an LLM in 2026... and both answers were wrong. I don't get it.
It's just not quicker for me to rewrite badly-written or over-engineered code.
I just don't feel comfortable pasting something into my codebase that I don't fully understand and just crossing my fingers and hoping.
That's not coding, it's driving while blindfolded.
And it's just not good to rely on a machine to do your thinking for you. You will get lazy. You will stop being analytical. You will become a worse developer.
And when things break... you won't be able to fix them.
Finally, nothing compares to a good teacher. Nothing. And AI just is nowhere near as good a teacher as someone like Jeffrey Way.
I'm sorry AI has crushed your business, Jeffrey, but I believe we'll all be back... eventually ❤️
MrMoto9000 wrote a reply+100 XP
3mos ago
MrMoto9000 liked a comment+100 XP
5mos ago