There's a tag video here: https://laracasts.com/series/laravel-6-from-scratch/episodes/32
In the serirs https://laracasts.com/series/laravel-6-from-scratch you may want to view 31 first.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I got to modify the code after another programmer. When I forget what the whole project looks like. So I fight multiple php tags in code. Since the author of the original code inserted html into php.
e.g.:
if ($odp != '') { ?>
<tr>
<td><span><? if (!empty($_SESSION['wlan'])) echo $row['odp_a']; else echo $odp; ?></span>
...
Coz causes various errors. Eg: Unclosed '{' on line 578 in E: \ Programs \ Taox \ app \ Legacy \ _include \ function.php on line 1928 - when trying to start the migration.
My question is how best to deal with it. It will be enough to modify the conditions into the template version, therefore.
<?php if ($odp != '') : ?>
<tr>
<td><span><? if (!empty($_SESSION['wlan'])) echo $row['odp_a']; else echo $odp; ?></span>
...
<?php endif ?>
Or you can handle it differently
I don't want to rewrite it, because similar things are in other files. And you have about 4k lines together
Please or to participate in this conversation.