📜  laravel 成功消息 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:43.905000             🧑  作者: Mango

代码示例2
//If it didn't help (still, keep routes.php without web middleware), you can try little bit different approach:

return redirect()->back()->with('message', 'IT WORKS!');
// Displaying message if it exists:

@if(session()->has('message'))
    
{{ session()->get('message') }}
@endif