InfiniteList.php
Component to list record using Ajax. Should implement the following.
- Rendering of records should be implemented by view includes as it will be used in controller to generate next records.
- Method specified by route should return Ajax response.
- In case callback functions are required,
- Name of that function should be infiniteCallback();
- Function should be defined outside the component and should be available in window context
- Usage is limited to one per view in case it requires callback.
- Sample usage - UserController@index