File manager - Edit - /var/www/html/portalHomolog/vendor/laravel/framework/src/Illuminate/Console/Concerns/FindsAvailableModels.php
Back
<?php namespace Illuminate\Console\Concerns; use Illuminate\Support\Collection; use Symfony\Component\Finder\Finder; trait FindsAvailableModels { /** * Get a list of possible model names. * * @return array<int, string> */ protected function findAvailableModels() { $modelPath = is_dir(app_path('Models')) ? app_path('Models') : app_path(); return (new Collection(Finder::create()->files()->depth(0)->in($modelPath))) ->map(fn ($file) => $file->getBasename('.php')) ->sort() ->values() ->all(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings