Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我该如何解决这个问题?我已经尝试了任何方法,但我仍然无法将数据库中的 uuid 与我创建的本地 id 进行比较。
您不需要使用 {{}},因为它们在内部呈现给 echo()。
比较只是:
@foreach($tasks as $task) @if($task->uuid == $id)
您不需要在刀片寺庙的控制语句中使用 {{}}。{{}} 在视图上渲染任何变量时使用。