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);
}
Route::get('/profile/{Profile}', 'PlayerController@getStats');
Route::get('/search', 'PlayerController@searchForm');
Route::post('/search', 'PlayerController@search');
Route::get('/profile/{Profile}', 'PlayerController@getStats');
Also in PHP:
- data validation of $_POST in php
- Str random
- check if home page wordpress
- check string exist in php
- composer create-project –-prefer-dist laravel/laravel install "5.8"
- datetimepicker format php
- catching errors in php
- date("Y-m-d",
- fetch visitor ip address php
- convert string into non capital letters php
- clearing cache on live site laravel
- @ in php to supress error in php
- does php reverse array function
- display contents of a folder php
- composer create-project laravel 6
- all php exception
- caracter_creator.phpif in string
- calculate string length php
- date('N') php
- auto generate password in php
- create folder with php
- calling a php function in a catch block
- find if string contains characters php
- find index of a charachter charachrer isn string phph