Home > Backend Development > PHP Tutorial > How to parse the value of vueJs in laravel blade

How to parse the value of vueJs in laravel blade

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-03-01 15:02:01
Original
1506 people have browsed it

<code>
<a class="commented-user">{{\App\User::find(10)->name}}</a>
</code>
Copy after login
Copy after login

If 10 is like this, I think it is through a method like @{{ user.id }} (@{{user.id}}The parsed result is 10)
And how to parse this in the laravel blade template

Reply content:

<code>
<a class="commented-user">{{\App\User::find(10)->name}}</a>
</code>
Copy after login
Copy after login

If 10 is like this, I think it is through a method like @{{ user.id }} (@{{user.id}}It is 10 when parsed)
And how to parse this in the laravel blade template

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Composer cannot install laravel
From 1970-01-01 08:00:00
0
0
0
Laravel Space/laravel-backup cannot be installed
From 1970-01-01 08:00:00
0
0
0
Laravel 5.1 Login laravel comes with it No more
From 1970-01-01 08:00:00
0
0
0
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template