e29a5891c8
Reviewed-on: #5 Co-authored-by: ISMAIL MASSERAN <ismail@koppkb.com> Co-committed-by: ISMAIL MASSERAN <ismail@koppkb.com>
41 lines
1.0 KiB
PHP
41 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Auth\Notifications\VerifyEmail;
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The policy mappings for the application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $policies = [
|
|
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
|
|
];
|
|
|
|
/**
|
|
* Register any authentication / authorization services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
$this->registerPolicies();
|
|
|
|
VerifyEmail::toMailUsing(function ($notifiable, $url) {
|
|
$Url = 'http://localhost:8000/api?email_verify_url='.$url;
|
|
|
|
return (new MailMessage)
|
|
->subject('Verify Email Address')
|
|
->line('Click the button below to verify your email address.')
|
|
->action('Verify Email Address', $Url);
|
|
// ->action('Verify Email Address', $spaUrl);
|
|
});
|
|
|
|
}
|
|
}
|