forked from XiaoLFeng/XF_Index
35 lines
741 B
PHP
35 lines
741 B
PHP
|
<?php
|
||
|
/*
|
||
|
* Copyright © 2016 - 2023 筱锋xiao_lfeng. All Rights Reserved.
|
||
|
* 开发开源遵循 MIT 许可,若需商用请联系开发者
|
||
|
* https://www.x-lf.com/
|
||
|
*/
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||
|
|
||
|
class AuthServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* The policy mappings for the application.
|
||
|
*
|
||
|
* @var array<class-string, class-string>
|
||
|
*/
|
||
|
protected $policies = [
|
||
|
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* Register any authentication / authorization services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function boot()
|
||
|
{
|
||
|
$this->registerPolicies();
|
||
|
|
||
|
//
|
||
|
}
|
||
|
}
|