%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/geotechnics/api/vendor/spatie/laravel-permission/src/
Upload File :
Create Path :
Current File : /var/www/html/geotechnics/api/vendor/spatie/laravel-permission/src/helpers.php

<?php

if (! function_exists('getModelForGuard')) {
    /**
     * @param string $guard
     *
     * @return string|null
     */
    function getModelForGuard(string $guard)
    {
        return collect(config('auth.guards'))
            ->map(function ($guard) {
                if (! isset($guard['provider'])) {
                    return;
                }

                return config("auth.providers.{$guard['provider']}.model");
            })->get($guard);
    }
}

if (! function_exists('isNotLumen')) {
    /**
     * check if application is lumen.
     *
     * @return bool
     */
    function isNotLumen(): bool
    {
        return ! preg_match('/lumen/i', app()->version());
    }
}

Zerion Mini Shell 1.0