Answers for "When you click on the search button, it is moved to the page laravel"

PHP
0

When you click on the search button, it is moved to the page laravel

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);
}
Posted by: Guest on October-23-2020
0

When you click on the search button, it is moved to the page laravel

Route::get('/profile/{Profile}', 'PlayerController@getStats');
Posted by: Guest on October-23-2020
0

When you click on the search button, it is moved to the page laravel

Route::get('/profile/{Profile}', 'PlayerController@getStats');
Route::get('/search', 'PlayerController@searchForm');
Route::post('/search', 'PlayerController@search');
Posted by: Guest on October-23-2020

Code answers related to "When you click on the search button, it is moved to the page laravel"

Browse Popular Code Answers by Language