【发布时间】:2021-05-19 11:23:28
【问题描述】:
我的刀片上有一个按钮,可以在 laravel-livewire 中打开一个模态窗口,例如
<a href="#" wire:click="confirmI">
另外,这是我的控制器
public function confirmI()
{
$this->reset();
$this->eurl='https://websiteurl.com';
$this->confirmingI = true;
}
和我在刀片中的模型
<x-jet-dialog-modal wire:model="confirmingI">
<x-slot name="title">
WebPage
</x-slot>
<x-slot name="content">
<div class="flex -mx-3 mt-2">
here is data
</div>
</x-slot>
<x-slot name="footer">
</x-slot>
</x-jet-dialog-modal>
我想要的是在读取的模式中加载$eurl value 网站内容
“这是数据”
【问题讨论】:
标签: php laravel laravel-blade laravel-livewire