lundi 14 novembre 2016

Complete the task after user logged in?

When user is logged he can bookmark property, if not modal for login will appear. My problem is how can i remeber what he choose so when he logged in to bookmark that property that he clicked before he was logged in. Any suggestions?

  @if(Sentinel::check())
     @if($bookmark = in_array($property->id, $bookmarks))
     <a href=""><i class="fa fa-heart"></i></a>
     @else
     <a href=""><i class="fa fa-heart-o"></i></a>
     @endif
     @else
      <a href="#" data-toggle="modal" data-target="#loginModal"><i class="fa fa-heart-o"></i></a>
     @endif



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire