| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function initialize(Grid $grid) |
||
| 57 | { |
||
| 58 | parent::initialize($grid); |
||
| 59 | $this->showId = substr(url()->current(), strrpos(url()->current(), '/' )+1); |
||
| 60 | Event::listen(Grid::EVENT_PREPARE, function (Grid $grid) { |
||
| 61 | if ($grid->getInputProcessor()->getValue(static::INPUT_PARAM, false)) { |
||
| 62 | dispatch((new ExportExcel($this->getDate(), $grid->getConfig()->getName(), auth()->user()->id, $this->showId))->onQueue('default')); |
||
| 63 | } |
||
| 64 | }); |
||
| 65 | } |
||
| 66 | } |