In this tutorial i have to solve this error Cannot access offset of type string on string so follow this tutorial i have solved in this tutorials.
Error:-
Cannot access offset of type string on string
Solution :-
@foreach ($getting_notification as $notification)
<div class="bg-blue-300 p-3 m-2">
@php
$data = json_decode($notification->data, true);
@endphp
<b>{{ $data['invited_by'] }}</b> started following you!!!
</div>
@endforeach