diff --git a/app/RSpade/Core/Bundle/BundleCompiler.php b/app/RSpade/Core/Bundle/BundleCompiler.php index 2a03a1415..abff36683 100755 --- a/app/RSpade/Core/Bundle/BundleCompiler.php +++ b/app/RSpade/Core/Bundle/BundleCompiler.php @@ -1202,6 +1202,11 @@ class BundleCompiler // Find all PHP models in the bundle $models_in_bundle = []; 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); // Check if this is a PHP file with a class