📜  当你点击搜索按钮时,它被移动到页面 laravel - PHP 代码示例

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

代码示例3
public function searchForm() {
    return view('search');
}

public function search(Request $request) {
    // get the input
    $inputText = ...;
    // logic to get the profile name
    $profileName = ...;
    return redirect('/profile/'.$profileName);
}