Open Nuranto opened 5 years ago
In class ModalRenderer, you pass $modal to start method, and not end. However, it could be usefull in end method too.
ModalRenderer
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) !!}
{!! Modal::end() !!}
{!! Modal::end($modal) !!}
In class
ModalRenderer
, you pass $modal to start method, and not end. However, it could be usefull in end method too.=>
plus replace all
{!! Modal::end() !!}
occurences with{!! Modal::end($modal) !!}