for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Soved\Laravel\Magic\Auth\Traits;
use Soved\Laravel\Magic\Auth\Notifications\MagicLink as MagicLinkNotification;
trait CanMagicallyLogin
{
/**
* Get the e-mail address where magic links are sent.
*
* @return string
*/
public function getEmailForMagicLink()
return $this->email;
}
* Send the magic link notification.
* @param string $link
* @return void
public function sendMagicLinkNotification(string $link)
$this->notify(new MagicLinkNotification($link));
notify()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
notify(new MagicLinkNotification($link));
* Determine if the user was authenticated via a magic link.
* @return bool
public function viaMagicLink()
return session('viaMagicLink', false);
session
return /** @scrutinizer ignore-call */ session('viaMagicLink', false);