update inbox list
This commit is contained in:
20
vendor/spatie/laravel-permission/src/helpers.php
vendored
Normal file
20
vendor/spatie/laravel-permission/src/helpers.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user