ErrorException Trying to get property 'nom_service' of non-object
P粉662089521
P粉662089521 2024-02-26 22:38:44
0
1
610

Please help I have tried the biggest approach with no results, I am a beginner in Laravel! ! !

liste.blade.php

<td> {{$data->candidature->demande}} </td>

        <td> {{$data->candidature->service->nom_service}} </td>

        <td> {{$data->nom}} </td>

P粉662089521
P粉662089521

reply all(1)
P粉359850827

If the service is indeed an array, as mentioned in the comments, try this:

@foreach ($data->candidature->service as $service)
     {{$service->nom_service}} 
@endforeach
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template