Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117752227
AuthServiceProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
826 B
Referenced Files
None
Subscribers
None
AuthServiceProvider.php
View Options
<?php
namespace
App\Providers
;
use
App\Auth\LDAPUserProvider
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Gate
;
use
Illuminate\Foundation\Support\Providers\AuthServiceProvider
as
ServiceProvider
;
class
AuthServiceProvider
extends
ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected
$policies
=
[
// 'App\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public
function
boot
()
{
$this
->
registerPolicies
();
Auth
::
provider
(
'ldap'
,
function
(
$app
,
array
$config
)
{
return
new
LDAPUserProvider
(
$app
[
'hash'
],
$config
[
'model'
]);
}
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 3:53 AM (4 d, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ca/08/ff668c55917c54929c3bd875a525
Default Alt Text
AuthServiceProvider.php (826 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline