Core
Core provides stable building blocks shared by Artisan Toolbox packages. Applications normally receive it as a transitive dependency, but it can also be installed directly when its public components are needed.
Requirements
Section titled “Requirements”- PHP 8.5 or later
- Laravel 13 components
Installation
Section titled “Installation”composer require artisan-toolbox/coreFeatures
Section titled “Features”- Sift conditional arrays: include values conditionally and recursively remove rejected entries from arrays and other iterables.
- Multi-domain Inertia visits: keep Inertia navigation working when links move between trusted domains or subdomains served by the same Laravel application.
- Translated model attributes: store stable translation keys while exposing localized strings from Eloquent models.
Published resources
Section titled “Published resources”Publish all package resources:
php artisan vendor:publish --tag="core"Individual publish tags are available for configuration, migrations, views, translations, and public assets:
php artisan vendor:publish --tag="core-config"php artisan vendor:publish --tag="core-migrations"php artisan vendor:publish --tag="core-views"php artisan vendor:publish --tag="core-lang"php artisan vendor:publish --tag="core-assets"Run migrations after publishing them:
php artisan migrate
