Fix bundle compiler to only consider .php files for PHP models
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1202,6 +1202,11 @@ class BundleCompiler
|
|||||||
// Find all PHP models in the bundle
|
// Find all PHP models in the bundle
|
||||||
$models_in_bundle = [];
|
$models_in_bundle = [];
|
||||||
foreach ($all_bundle_files as $file) {
|
foreach ($all_bundle_files as $file) {
|
||||||
|
// Only consider .php files for PHP models
|
||||||
|
if (!str_ends_with($file, '.php')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$relative = str_replace(base_path() . '/', '', $file);
|
$relative = str_replace(base_path() . '/', '', $file);
|
||||||
|
|
||||||
// Check if this is a PHP file with a class
|
// Check if this is a PHP file with a class
|
||||||
|
|||||||
Reference in New Issue
Block a user