Check out example codes for "property 'request' not found in php". It will help you in understanding the concepts better.

Code Example 1

use App\Http\Controllers\UserController;

Route::put('user/{id}', [UserController::class, 'update']);

Learn ReactJs, React Native from akashmittal.com