Support the ongoing development of Laravel.io →
posted 4 years ago
Blade

I use laravel and Vue.

My blade in laravel has these input variables.

$sdate // value = "2020-01-01" $edate There is a Vue component in that blade:

<my-component :sdate="{{$sdate}}" :edate="{{$edate}}"></my-component>

As you see above, I pass data to component but the value I get in Vue is 2018. it's the calculation of my string.

vuvuv How to stop calculation on input?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

ultraomid ultraomid Joined 7 Nov 2020

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.