Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel verify email custom url

/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
    ...

    VerifyEmail::createUrlUsing(function ($notifiable) {
        $frontendUrl = 'http://cool-app.com/auth/email/verify';

        $verifyUrl = URL::temporarySignedRoute(
            'verification.verify',
            Carbon::now()->addMinutes(Config::get('auth.verification.expire', 60)),
            [
                'id' => $notifiable->getKey(),
                'hash' => sha1($notifiable->getEmailForVerification()),
            ]
        );

        return $frontendUrl . '?verify_url=' . urlencode($verifyUrl);
    });
}
Comment

laravel verify email custom url

/**
* Set a callback that should be used when creating the email verification URL.
*
* @param  Closure  $callback
* @return void
*/
public static function createUrlUsing($callback)
{
    static::$createUrlCallback = $callback;
}
Comment

PREVIOUS NEXT
Code Example
Php :: mysql gone away error in php 
Php :: php monolog 
Php :: php crud generator 
Php :: PHP XML Expat Parser 
Php :: Undefined property: IlluminateDatabaseQueryBuilder::$name 
Php :: laravel set timezone dynamically 
Php :: laravel api error return homepage 
Php :: how to get post by comment in laravel 
Php :: clear the compiled classes 
Php :: XAMPP PHPMyAdmin Access 
Php :: Laravel factory creating tempory data 
Php :: PHP parse_str — Parses the string into variables 
Php :: PHP script to download all images from URL 
Php :: laravel echo 
Php :: php vs python speed 
Php :: id type laravel 
Php :: show widget using the shortcode from php 
Php :: php check if date between two dates 
Php :: laravel eloquent relationships 
Php :: @can in laravel 
Php :: Write Multi-Line Strings in PHP 
Php :: phpdoc example 
Php :: check nulls in php 8 
Php :: php mvc example 
Php :: laravel return redirect back with input except one filed 
Php :: php system info script 
Php :: facetwp listing template archive 
Php :: en php comment convertir une date en français stackoverflow 
Php :: laravel event on attribute chang 
Php :: wp query compare like and or 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =