Created
January 11, 2018 19:57
-
-
Save deleugpn/222ba231aa429cb7bfcfe38e9eaae3ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| //... | |
| /** | |
| * @param \Illuminate\Http\Request | |
| * @return mixed | |
| */ | |
| public function __invoke(Request $request) | |
| { | |
| $users = User::paginate($request->get('page_size')); | |
| return UsersResource::collection($users); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment