SQL/Laravel: Get parents in tree data structure
Hello everyone) I use Laravel, MariaDB. For example, we have a table like this, let's say categories. id name _lft _rgt parent_id path is_folder 1373 Windows 1 10 NULL 1373 1 1374 Glass unit 2 7 1373 1373.1374 1 1375…