Route::get(uri: 'scraper', ["App\Http\Controllers\ScraperController"::class, 'scraper'])->name(name:'scraper');
I wrote this line in web.php, then I got this error:
‘Cannot use positional argument after named argument’
>Solution :
You’re attempting to define routes using named arguments when it’s not necessary. You should write the following:
Route::get('scraper', ["App\Http\Controllers\ScraperController"::class, 'scraper'])->name('scraper');
You can read more about named arguments and how they differ from positional arguments.