Explorar o código

"publisher" = $book->channel->owner

visuddhinanda hai 1 ano
pai
achega
de2ad8b5d7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api-v8/app/Http/Controllers/BookController.php

+ 1 - 1
api-v8/app/Http/Controllers/BookController.php

@@ -87,7 +87,7 @@ class BookController extends Controller
             "id" => $book->uid,
             "title" => $title,
             "author" => $book->channel->name,
-            "publisher" => $book->channel->owner->nickname,
+            "publisher" => $book->channel->owner,
             "type" => __('label.' . $book->channel->type),
             "category_id" => 11,
             "cover" => "/assets/images/cover/1/214.jpg",