Skip to content

Commit

Permalink
wraping up email verification
Browse files Browse the repository at this point in the history
  • Loading branch information
kominitisystem committed Jun 19, 2024
1 parent a230a24 commit e89fe00
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\Log;
use Laravel\Sanctum\HasApiTokens;

class User extends Authenticatable implements MustVerifyEmail
Expand Down Expand Up @@ -45,9 +44,9 @@ class User extends Authenticatable implements MustVerifyEmail
];


public function sendEmailVerificationNotification()
public function sendEmailVerificationNotiication()
{
Log::info("You passed through me ....");

$this->notify(new CustomVerifyEmailNotification);
}
}
6 changes: 2 additions & 4 deletions app/Notifications/CustomVerifyEmailNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public function __construct()

protected function verificationUrl($notifiable)
{
Log::info('emaaaiiilll that was okay');


$signedUrl = URL::temporarySignedRoute(
'verification.verify',
Carbon::now()->addMinutes(60),
Expand All @@ -49,6 +48,5 @@ public function toArray(object $notifiable): array
{
return [
//
];
}
]; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a:3:{s:6:"_token";s:40:"5EWXSgvdvycYBGkFlDnpgyoI10PgqBYUktg8HsPX";s:9:"_previous";a:1:{s:3:"url";s:42:"http://127.0.0.1:8000/api/community/member";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a:4:{s:6:"_token";s:40:"Ev6auQ83R5UZfzUUht878CVG2cTptb0NNgN77S6e";s:9:"_previous";a:1:{s:3:"url";s:42:"http://127.0.0.1:8000/api/community/member";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:50:"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:108;}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a:4:{s:6:"_token";s:40:"QfzuJBM2fdB8emo2z6MleE3rhHm2MvcaVckUmDYe";s:9:"_previous";a:1:{s:3:"url";s:41:"http://127.0.0.1:8000/sanctum/csrf-cookie";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:50:"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:107;}
a:4:{s:6:"_token";s:40:"QfzuJBM2fdB8emo2z6MleE3rhHm2MvcaVckUmDYe";s:9:"_previous";a:1:{s:3:"url";s:42:"http://127.0.0.1:8000/api/community/member";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:50:"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:107;}

0 comments on commit e89fe00

Please sign in to comment.