📜  刀片模板中的警报消息 with() - PHP 代码示例

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

代码示例1
public function create(Request $request)
{
    $this->validate($request,[
        'title' => 'required',
        'details' => 'required'
        ]);

    $items = Item::create($request->all());

    return back()->with('success','Item created successfully!');
}