Support the ongoing development of Laravel.io →
Blade Laravel Cache

Hi Currently, I am working on Laravel 5.4 and the application is hosted on a server and from past 8 months everyone is using that application but recently we found some users are facing issue with exceptions saying that Array to String Conversion in blade.php file with some line number. But the same user who got the exception open the same content in a different browser it works fine or removes the cache from the browser then it works fine. I am not getting what is the problem here. Can someone please help me.

The line which it gives exception is mentioned below:

<?php $lead_id = $lead->id; $Service_Type = $lead->ServiceType; $requested_service = $lead->requested_service; $url_request = $url; $url_request= "/Verticalhead/".$lead_id."/edit?servicetype=".$Service_Type."&requestedservice=".$requested_service."&url=".$url.""; ?>
       <a href="<?php echo $url_request; ?>"  class="edit" style="float: right;"><img src="/img/edit.png" class="img-responsive" alt="oops! Not found"> </a>
Last updated 2 years ago.
0

I Think that the problem that you're using echo $url_request;

which is an array and not a string !!

Please try

dd($url_request);
0

@Adel Harrat but it works fine in other systems only for few it is not working and if they clear the browser cache then it is working fine.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.