//display the " ->with() in front-end <?php if(session()->get('success')): ?> <div class="alert alert-success" role="alert"> <?= session()->get('success') ?> </div> <?php endif; ?>