lundi 6 janvier 2020

Undefined index: id when retriving data from data column in notifiaction table- Laravel

nav.blade.php

<div class="dropdown-menu dropdown-menu-right"
                    aria-labelledby="messagesDropdown">
                    <a style="color: green;" class="dropdown-item" href="#">
                        @foreach($user->unreadNotifications as $notifications)
                        <a href=""></a>
                        @endforeach
                    </a><!--  <a style="color: red;" class="dropdown-item" href="#"> <i
                        class="fas fa-plus"></i> &nbsp Add Lost Item
                    </a> -->

                </div>

I'm getting an error when retrieving the id from the data column please help me. I just want to get the item id and the name from data column in the notification table. if any one know please help me i'm new to laravel



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire