PATH:
home
/
lab2454c
/
vaultchip.com
/
vendor
/
barryvdh
/
laravel-ide-helper
/
src
<?php namespace Barryvdh\LaravelIdeHelper; use Exception; use Illuminate\Database\Eloquent\Factory; use ReflectionClass; class Factories { public static function all() { $factories = []; if (static::isLaravelSevenOrLower()) { $factory = app(Factory::class); $definitions = (new ReflectionClass(Factory::class))->getProperty('definitions'); $definitions->setAccessible(true); foreach ($definitions->getValue($factory) as $factory_target => $config) { try { $factories[] = new ReflectionClass($factory_target); } catch (Exception $exception) { } } } return $factories; } protected static function isLaravelSevenOrLower() { return class_exists('Illuminate\Database\Eloquent\Factory'); } }
[-] Macro.php
[edit]
[+]
..
[-] Method.php
[edit]
[+]
Listeners
[+]
Contracts
[-] Eloquent.php
[edit]
[-] UsesResolver.php
[edit]
[+]
Console
[-] Generator.php
[edit]
[-] IdeHelperServiceProvider.php
[edit]
[-] Factories.php
[edit]
[-] Alias.php
[edit]