I query an entity:
$trip_redirect_id = Trip::whereUniqueToken($unique_token)->select('id')->get();
and try to get the
id value with
$trip_redirect_id['id'] but I get exception that the field is not present.
When I dump the
$trip_redirect_id object, I can see the
id and it's value and they are correct (I checked with the database). But how can I access the value inside php?