durong hace 5 años
padre
commit
b2e1c5de32
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Repositories/MusicRepository.php

+ 2 - 1
app/Repositories/MusicRepository.php

@@ -168,7 +168,8 @@ class MusicRepository
     public function musicEdit($request)
     {
         $post_music_rel = $this->postMusicCategoryRel->select('mid')->where('id', $request['id'])->first();
-        $post_music = $this->postMusic->where('id',$post_music_rel->mid)->first();
+        $postMusic = new PostMusic();
+        $post_music = $postMusic->where('id',$post_music_rel->mid)->first();
         $date = date('Y-m-d H:i:s');
         $post_music->name = $request['name'];
         $post_music->url = $request['url'];