Skip to content

Instantly share code, notes, and snippets.

@jsenin
Created May 30, 2016 16:27
Show Gist options
  • Save jsenin/deaa471745d724c7cd113e13bc41e915 to your computer and use it in GitHub Desktop.
Save jsenin/deaa471745d724c7cd113e13bc41e915 to your computer and use it in GitHub Desktop.
$callers=debug_backtrace();
foreach($callers as $call) {
$line = empty($call['line']) ? false : $call['line'];
$file = empty($call['file']) ? false : $call['file'];
$class = empty($call['class']) ? false : $call['class'];
$function = empty($call['function']) ? false : $call['function'];
echo sprintf("%s: %s %s->%s\n", $line, $file, $class, $function );
}
dd($validator->errors());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment