mardi 17 mai 2016

In Laravel 5, How to customize Session flash message with href

I'm showing Please verify your email before login in my login blade if user didn't verify his account through email link.

if ($user->is_verified == 0) {
    $request->session()->flash("failed", "Please verify your email before login );
    return redirect('/login');
}

And in my blade I do like this to catch it

@if (Session::has('failed'))
    <div class="alert alert-danger">
    .<br><br>
    </div>              
@endif

But Now I have to add this message Please verify your email before login or resend the verification email and make resend part with href to a route. Any ideas ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire