Created
June 23, 2018 12:48
-
-
Save deleugpn/e72f2d46790feb78417db751e949d00b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Modules\Books; | |
use App\Eloquent\Book; | |
use App\Modules\Books\Resources\BookResource; | |
class ListBooks | |
{ | |
public function __invoke(Book $book) | |
{ | |
return BookResource::collection($book->paginate()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment