Installation
Requirements
- PHP 8.2 or newer and Composer.
- Laravel 9.19 or newer as declared by the package. Composer also checks the constraints of dependencies for your chosen release.
- A configured Laravel database and writable application storage.
Install via Composer
composer require jobmetric/laravel-extension
Laravel discovers the service provider through Composer.
Publish Configuration
Publish the package configuration through its service provider:
php artisan vendor:publish --provider="JobMetric\Extension\ExtensionServiceProvider" --tag="laravel-extension-config"
The package uses the extension configuration for registered types, table names, and discovery caching.
Publish Migrations
Publish the package migrations, then run them:
php artisan vendor:publish --provider="JobMetric\Extension\ExtensionServiceProvider" --tag="laravel-extension-migrations"
php artisan migrate
The package uses extensions, extension_migrations, and plugins tables by default. The installed-extension snapshot also needs writable storage.