mirror of
https://github.com/fergalmoran/OpnForm.git
synced 2026-02-01 05:14:17 +00:00
Initial commit
This commit is contained in:
22
app/Exceptions/VerifyEmailException.php
Normal file
22
app/Exceptions/VerifyEmailException.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Validation\ValidationException;
|
||||
|
||||
class VerifyEmailException extends ValidationException
|
||||
{
|
||||
/**
|
||||
* @param \App\User $user
|
||||
* @return static
|
||||
*/
|
||||
public static function forUser($user)
|
||||
{
|
||||
return static::withMessages([
|
||||
'email' => [__('You must :linkOpen verify :linkClose your email first.', [
|
||||
'linkOpen' => '<a href="/email/resend?email='.urlencode($user->email).'">',
|
||||
'linkClose' => '</a>',
|
||||
])],
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user