passing data from slider repository instead of id

This commit is contained in:
shubhammehrotra.symfony@webkul.com 2020-01-16 16:22:00 +05:30
parent 0468b7fa58
commit ba355a6f31
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class SliderRepository extends Repository
*/ */
public function save(array $data) public function save(array $data)
{ {
Event::fire('core.settings.slider.create.before', $id); Event::fire('core.settings.slider.create.before', $data);
$channelName = $this->channelRepository->find($data['channel_id'])->name; $channelName = $this->channelRepository->find($data['channel_id'])->name;