// oneliner dd(collect(glob(app_path('Models') . '/*.php'))->map(fn ($file) => basename($file, '.php'))->toArray());