New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dd() in laravel zero do not have show line number like laravel #449
Comments
The output should have a caret ( public function register(): void
{
$basePath = $this->app->basePath();
\Illuminate\Foundation\Console\CliDumper::register($basePath, null);
} |
Thanks for the code + explaination, but it is not exactly the same yet:
The line number was missing (it was the best part!). And since this is a really neat feature, do you think it deserve to be in laravel-zero by default? |
Ok, that's my bad. I thought the compiled view path could be made public function register(): void
{
$basePath = $this->app->basePath();
$compiledViewPath = $this->app['config']->get('view.compiled', \Illuminate\Support\Str::random());
\Illuminate\Foundation\Console\CliDumper::register($basePath, $compiledViewPath);
} So the problem is, if the path gets detected as starting with the compiled view path (e.g. I guess this could be added in to Laravel Zero, it's just a case of ensuring it's clean and won't cause any issues. |
It was a very neat feature in laravel :)
And thank you for this OSS repo.
The text was updated successfully, but these errors were encountered: