Skip to content

Instantly share code, notes, and snippets.


Paweł Damasiewicz pawel-damasiewicz

  • Katowice Silesia Poland
View GitHub Profile

Exec with env

docker-compose exec <service> env VAR=VAL bash -l
pawel-damasiewicz / TreeToSetService.php
Last active May 6, 2019
Tree to nested set algo (copied from collectiveidea/awesome_nested_set)
View TreeToSetService.php
<?php namespace App\Model\Menu;
use Illuminate\Support\Collection;
class TreeToSetService
public $indices = [];
private $leftColumnName = 'lft';
private $rightColumnName = 'rgt';
private $nodeScope = 'version_id';
You can’t perform that action at this time.