Skip to content

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.

  • PHP 8.5 or later
  • Laravel 13 components
Terminal window
composer require artisan-toolbox/core
  • 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.

Publish all package resources:

Terminal window
php artisan vendor:publish --tag="core"

Individual publish tags are available for configuration, migrations, views, translations, and public assets:

Terminal window
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:

Terminal window
php artisan migrate