* Add resource helper functions
* Fix doc-block style
* Remove empty line
* Make resource param optional and guess resource name
* Use throw_unless instead of assert
* Extract name guessing function
* Add tests for resource helpers
* Fix formatting
* Fix namespace conflicts and add current page
* Use more descriptive LogicException instead of Exception
* Refactor to use traits and extend base collection instead of eloquent collection
* Ensure trait method exists
* formatting
* formatting
* formatting
* adjust tests and logic
* add testS
* remove comment
---------
Co-authored-by: Taylor Otwell <taylor@laravel.com>