PHP 8.3.31
Preview: AuthServiceProvider.php Size: 1005 B
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php

<?php

namespace Illuminate\Foundation\Support\Providers;

use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
    /**
     * The policy mappings for the application.
     *
     * @var array<class-string, class-string>
     */
    protected $policies = [];

    /**
     * Register the application's policies.
     *
     * @return void
     */
    public function register()
    {
        $this->booting(function () {
            $this->registerPolicies();
        });
    }

    /**
     * Register the application's policies.
     *
     * @return void
     */
    public function registerPolicies()
    {
        foreach ($this->policies() as $model => $policy) {
            Gate::policy($model, $policy);
        }
    }

    /**
     * Get the policies defined on the provider.
     *
     * @return array<class-string, class-string>
     */
    public function policies()
    {
        return $this->policies;
    }
}

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
1005 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
5.55 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
4.32 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).