Hi folks
Could someone please help me out, in a blade file I have:-
@include('includes.js.autopilot')
Then inside the autopilot blade I have:-
@if(Auth::User())
<script type="text/javascript">
Autopilot.run("associate", {{ Auth::user()->email }});
</script>
@endif
However it's not working, the email is not successfully being included in the script.
you might want to put two quotes or double quotes side by side the string
Autopilot.run("associate", "{{ Auth::user()->email }})";
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community