mardi 18 février 2020

how to send a message with login in Laravel?

I have this function for log but I have an error in the compact

public function redirectPath()
{
    if (Auth::user()){

        $msg_modal = 1;
        return '/', compact('msg_modal');
}

to run this script which show me a modal

@if(!empty($msg_modal) && $msg_modal == 1)

<script>
$(function() {
$('#mostrarmodal').modal('show');
});
</script>

@endif

This is the modal that I would like to see when I log

<div class="modal fade" id="mostrarmodal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
       <div class="modal-header">
          <h3><center>System</center></h3>
       </div>
       <div class="modal-body">
          <h4><center>Message</center></h4>
          <center>You are connected!!!</center>
      </div>
       <div class="modal-footer">
      <a href="#" data-dismiss="modal" class="btn btn-info">Continuar</a>
       </div>
  </div>


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2vGjQtQ
via IFTTT

1 commentaire:

  1. This way my colleague Wesley Virgin's adventure launches with this SHOCKING AND CONTROVERSIAL VIDEO.

    As a matter of fact, Wesley was in the military-and soon after leaving-he found hidden, "self mind control" tactics that the CIA and others used to get everything they want.

    As it turns out, these are the same tactics lots of famous people (especially those who "come out of nothing") and the greatest business people used to become rich and successful.

    You probably know that you utilize only 10% of your brain.

    That's mostly because the majority of your brain's power is UNCONSCIOUS.

    Maybe this expression has even occurred IN YOUR own mind... as it did in my good friend Wesley Virgin's mind seven years ago, while riding an unlicensed, beat-up bucket of a car with a suspended driver's license and $3 in his pocket.

    "I'm absolutely fed up with living paycheck to paycheck! Why can't I become successful?"

    You took part in those types of questions, isn't it so?

    Your success story is going to be written. You need to start believing in YOURSELF.

    CLICK HERE TO LEARN WESLEY'S METHOD

    RépondreSupprimer