leantony / laravel-grid

A grid view for laravel, inspired by the yii2 grid widget
https://leantony.github.io/laravel-grid/
MIT License
91 stars 39 forks source link

Pass modal variable to modal-partial-end #98

Open Nuranto opened 5 years ago

Nuranto commented 5 years ago

In class ModalRenderer, you pass $modal to start method, and not end. However, it could be usefull in end method too.

public function end()
    {
        return view('leantony::modal.modal-partial-end');
    }

=>

public function end($data)
    {
        return view('leantony::modal.modal-partial-end', ['modal' => $data]);
    }

plus replace all {!! Modal::end() !!} occurences with {!! Modal::end($modal) !!}