根据文献资料的说法,在运行操作时,我们有可能返回土司消息。这些代码的成功信息可以使用以下代码显示:
return Action::message('It worked!');
return Action::danger('Something went wrong!');问题是这些消息在屏幕上只显示了几秒钟。
我目前正在做一个动作,需要5-8分钟才能执行,所以如果用户点击离开,就没有办法将祝酒词信息保留在屏幕上,这样当您打开选项卡恢复工作时,它就在那里?也许用“好吧!”吐司上的纽扣?
发布于 2022-04-13 03:50:03
使用laravel 4通知功能发送通知。
use Laravel\Nova\Notifications\NovaNotification;
$request->user()->notify(
NovaNotification::make()
->message('Your report is ready to download.')
->action('Download', 'https://example.com/report.pdf')
->icon('download')
->type('info')
);https://stackoverflow.com/questions/69992806
复制相似问题