Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 150
Zeile 454... Zeile 454...
454
 
454
 
455
if (! function_exists('fake') && class_exists(\Faker\Factory::class)) {
455
if (! function_exists('fake') && class_exists(\Faker\Factory::class)) {
456
    /**
456
    /**
457
     * Get a faker instance.
457
     * Get a faker instance.
458
     *
458
     *
459
     * @param  ?string  $locale
459
     * @param  string|null  $locale
460
     * @return \Faker\Generator
460
     * @return \Faker\Generator
461
     */
461
     */
462
    function fake($locale = null)
462
    function fake($locale = null)
-
 
463
    {
463
    {
464
        if (app()->bound('config')) {
-
 
465
            $locale ??= app('config')->get('app.faker_locale');
-
 
466
        }
-
 
467
 
Zeile 464... Zeile 468...
464
        $locale ??= app('config')->get('app.faker_locale') ?? 'en_US';
468
        $locale ??= 'en_US';
Zeile 465... Zeile 469...
465
 
469
 
466
        $abstract = \Faker\Generator::class.':'.$locale;
470
        $abstract = \Faker\Generator::class.':'.$locale;