-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
debugbar conflit #34
Comments
@jonaswebdev I'm not sure what the actual issue is, can you please explain? |
@jonaswebdev Same problem: $select = [
"c.id as ID звонка",
DB::raw("concat(o.date, ' ', o.time) as 'Дата брони'"),
"c.created_at as Дата звонка",
"b.name as Заведение",
"r.total as Сумма",
"c.comments as Комменты звонка"
];
$result = DB::table('calls as c')
->select($select)
->leftJoin('orders as o', 'o.id', 'c.order_id')
->leftJoin('bars as b', DB::raw('ifnull(o.bar_id, c.bar_id)'), 'b.id')
->leftJoin('revises as r', 'r.order_id', 'o.id')
->where('c.is_utm_match', 0)
->get();
$writer = new Export;
$writer->getWriter()->setDelimiter(';')->addFormatter((new CharsetConverter)->outputEncoding('windows-1251'));
$writer->build($result, ['ID звонка', 'Дата брони', 'Дата звонка', 'Заведение', 'Сумма', 'Комменты звонка'])->download('метки-не-совпали.csv'); Result is http://skrinshoter.ru/s/080719/gLMDYrtt |
@projct1 I don't get what exactly the error is. |
@usmanhalalit can u see screenshot? http://skrinshoter.ru/s/080719/gLMDYrtt |
@projct1 yes, but I don't understand, I'm not a debugbar user either. |
@usmanhalalit so, that fix problem named "debugbar conflit" should install debugbar i think) |
Hi @usmanhalalit sorry by delay. So, the issue with I don't know how I could help you, please guide me if you can, but I agree with @projct1, and you could try to use thanks in advance |
Thanks for the explanation @jonaswebdev . I might need to try debugbar. |
Same problem here. Event i disabled debugbar the CSV contains some javascript code. |
I use native way and plugin becomes no need: $formatter = new CharsetConverter;
$writer = Writer::createFromFileObject(new SplTempFileObject);
$writer->setDelimiter(';')->addFormatter($formatter->outputEncoding('windows-1251'));
$header = ['ID брони', 'Дата брони', 'Дата звонка', 'Заведение', 'Сумма', 'Комменты звонка'];
$select = ['o.id', DB::raw("concat(o.date, ' ', o.time)"), 'c.created_at', 'b.name', 'r.total', 'c.comments'];
$result = DB::table('calls as c')
->select($select)
->leftJoin('orders as o', 'o.id', 'c.order_id')
->leftJoin('bars as b', DB::raw('ifnull(o.bar_id, c.bar_id)'), 'b.id')
->leftJoin('revises as r', 'r.order_id', 'o.id')
->where('c.is_utm_match', 0)
->get();
$writer->insertOne($header);
$writer->insertAll(json_decode(json_encode($result), true));
$writer->output('метки не совпали.csv'); |
The solution I found was
|
Disable the debugbar work for me but i have to do it with this code in Laravel 5.8 |
Very late to the party here but what worked for me was adding
|
Hi, I just tested this class and love it congratulations to author and all contributors.
I got an issue locally when I created a CSV the laravel-debugbar info are included, see:
When I change my
.env
todebug=false
it's solved :)The text was updated successfully, but these errors were encountered: