[ # ], # 'update' => [ # ], # ]; public function __construct(User $user, UserRepo $userRepo) { $this->user = $user; $this->userRepo = $userRepo; } /** * Get a listing of pages visible to the user. */ public function list() { $users = $this->userRepo->getUsersBuilder(); return $this->apiListingResponse($users, [ 'id', 'name', 'slug', 'email', 'created_at', 'updated_at', ]); } }