Use regular expressions to extract PHP variable names from blade template?
I need to extract php variables from Blade templates. The issue is that I can't figure out how to exclude variables created within foreach loops. {{ $ok }} {{$alsoOK}} @foreach($yes as $no) {{ $no }} {{ $no->foo }} @endforeach So…