dejwcake/admin-listing
Admin Listing
AdminListing is a helper for building admin listings on your Eloquent models, turning typical HTTP requests into ready-to-use query results. It automatically handles common tasks like pagination, ordering, and search, and also supports translatable Eloquent models (see Translatable Eloquent Models).
This package is part of Craftable (dejwCake/craftable), an administration starter kit for Laravel 13, forked from Craftable (brackets/craftable).
Documentation
You can find full documentation at https://docs.getcraftable.com/#/admin-listing
Issues
Where do I report issues? If something is not working as expected, please open an issue in the main repository https://github.com/dejwCake/craftable.
How to develop this project
Composer
Update dependencies:
docker compose run -it --rm test composer update
Composer normalization:
docker compose run -it --rm php-qa composer normalize
Run code analysis tools (php-qa)
PHP compatibility:
docker compose run -it --rm php-qa phpcs --standard=.phpcs.compatibility.xml --cache=.phpcs.cache
Code style:
docker compose run -it --rm php-qa phpcs -s --colors --extensions=php
Fix style issues:
docker compose run -it --rm php-qa phpcbf -s --colors --extensions=php
Static analysis (phpstan):
docker compose run -it --rm php-qa phpstan analyse --configuration=phpstan.neon
Regenerate the phpstan baseline:
docker compose run -it --rm php-qa phpstan analyse --configuration=phpstan.neon --generate-baseline=phpstan-baseline.neon
Mess detector (phpmd):
docker compose run -it --rm php-qa phpmd analyze
Regenerate the phpmd baseline:
docker compose run -it --rm php-qa phpmd analyze --generate-baseline
Run tests
Run tests against mariadb:
docker compose run -it --rm -e DB_CONNECTION=mariadb test ./vendor/bin/phpunit
Run tests against postgresql:
docker compose run -it --rm -e DB_CONNECTION=pgsql test ./vendor/bin/phpunit
Run tests with coverage:
docker compose run -it --rm test ./vendor/bin/phpunit --coverage-text
Run the whole PHP suite
Run every PHP check and the test suite against both databases in sequence (stops at the first failure):
docker compose run -it --rm test composer update \
&& docker compose run -it --rm php-qa composer normalize \
&& docker compose run -it --rm php-qa phpcs --standard=.phpcs.compatibility.xml --cache=.phpcs.cache \
&& docker compose run -it --rm php-qa phpcs -s --colors --extensions=php \
&& docker compose run -it --rm php-qa phpstan analyse --configuration=phpstan.neon \
&& docker compose run -it --rm php-qa phpmd analyze \
&& docker compose run -it --rm -e DB_CONNECTION=mariadb test ./vendor/bin/phpunit \
&& docker compose run -it --rm -e DB_CONNECTION=pgsql test ./vendor/bin/phpunit
Related Packages
Eloquent DataTable plugin for server side ajax call handling.
Backend interface for handling CRUD operations on your Laravel Eloquent models.
Make your Eloquent models and other content translated into multiple languages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.2.0 | ^8.5 | ^13.0 | MIT | |
| 2.1.0 | ^8.5 | ^13.0 | MIT | |
| 2.0.0 | ^8.5 | ^13.0 | MIT | |
| 1.0.1 | ^8.2 | ^12.0 | MIT | |
| 1.0.0 | ^8.2 | ^12.0 | MIT | |
| 0.9.2 | ^8.1 | ^10.0 | MIT | |
| 0.9.1 | ^8.1 | ^10.0 | MIT | |
| 0.9.0 | ^8.1 | ^10.0 | MIT |