PHP code example of devsite / claude-skill-laravel-migration-searcher
1. Go to this page and download the library: Download devsite/claude-skill-laravel-migration-searcher library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devsite / claude-skill-laravel-migration-searcher example snippets
return [
// Where indexes will be generated (relative to project root)
'output_path' => '.claude/skills/laravel-migration-searcher',
// Define your migration types
'migration_types' => [
'default' => [
'path' => 'database/migrations',
],
],
// Custom format-to-renderer mapping (extends built-in markdown/json)
'formats' => [],
// Default output format: 'markdown' or 'json'
'default_format' => 'markdown',
// Maximum file size in bytes for migration analysis (default: 5MB)
'max_file_size' => 5242880,
];
'migration_types' => [
'system' => [
'path' => 'database/migrations',
],
'tenant' => [
'path' => 'database/tenant-migrations',
],
],
'migration_types' => [
'core' => [
'path' => 'database/migrations',
],
'modules' => [
'path' => 'modules/*/migrations',
],
],
'migration_types' => [
'default' => [
'path' => 'database/migrations',
],
'import_before' => [
'path' => 'database/import/before',
],
'import_after' => [
'path' => 'database/import/after',
],
],
bash
php artisan vendor:publish --tag=migration-searcher-config
bash
php artisan vendor:publish --tag=migration-searcher-skill
bash
php artisan migrations:index
bash
composer vendor:publish --tag=migration-searcher-config
php artisan migrations:index
git add .claude/ config/migration-searcher.php
git commit -m "Add migration indexer"
git push
markdown
### 2024_01_15_143022_add_subscription_plan_to_users.php
**Type:** default
**Path:** database/migrations/2024_01_15_143022_add_subscription_plan_to_users.php
**Timestamp:** 2024_01_15_143022
**Complexity:** 3/10
**Tables:**
- `users` (ALTER)
**Columns:**
- `subscription_plan` (string [nullable])
- `subscription_expires_at` (timestamp [nullable])
**DDL Operations:**
- **column_create:** 2 operations
**DML Operations:**
- **UPDATE** on `users`
- WHERE: subscription_plan IS NULL
- Columns: subscription_plan
- Data: ['subscription_plan' => 'free']