I have an object of JSON data in my laravel application. When I display that variable in blade
{{$permissions}}
I get the following
How would I access the role ID?
Thanks
If it's a object, you just do
`$json->roles[0]->id`
if it is a string, you must decode it first so you do
$json = json_decode($string);
and then you do step 1