PHP code example of robertogallea / laravel-necromancer
1. Go to this page and download the library: Download robertogallea/laravel-necromancer 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/ */
robertogallea / laravel-necromancer example snippets
'inference' => [
'critic' => [
'enabled' => true, // set to false to disable the critic entirely
],
],
return [
// Artifact exclusions — supports wildcard patterns for routes and glob patterns for tests
'exclude' => [
'routes' => ['horizon.*', 'telescope.*', 'debugbar.*'], // matched against the route NAME
'route_uris' => ['up'], // matched against the route URI (works for unnamed routes such as Laravel's /up health check)
'models' => [],
'tests' => [], // glob patterns matched against relative file paths, e.g. 'tests/Fixtures/*'
],
// Test discovery roots — override the default tests/Unit and tests/Feature scan paths
'tests' => [
'roots' => [
// ['path' => base_path('tests/Unit'), 'type' => 'unit'],
// ['path' => base_path('tests/Feature'), 'type' => 'feature'],
],
],
// Output paths (defaults shown)
'output' => [
'manifest' => base_path('necromancer.json'),
'context' => base_path('NECROMANCER.md'),
],
// Laravel Boost integration
'boost' => [
'context_path' => base_path('.ai/guidelines/necromancer.md'),
],
];
bash
php artisan necromancer:prompt "Where is tenant isolation enforced?"
You are analyzing MyApp, a Laravel 13 application.
Use the following source-grounded manifest entries:
- app/Http/Middleware/SetTenant.php:15-61
- app/Models/Project.php:12-44
- app/Http/Requests/CreateProjectRequest.php:1-38
Question:
Where is tenant isolation enforced?
Rules:
- Only answer from cited sources.
- Mention missing evidence.
- Do not assume runtime behavior not shown in code/tests.