Cannot declare class Controller, because the name is already in use
Remove the “app/Http/Controllers” from your classmap. Add namespace App\Http\Controllers; above your use blocks. Then run composer dump-auto
Remove the “app/Http/Controllers” from your classmap. Add namespace App\Http\Controllers; above your use blocks. Then run composer dump-auto
When you have an URI such as login?r=articles, you can retrieve articles like this: request()->r You can also use request()->has(‘r’) to determine if it’s present in the URI. And request()->filled(‘r’) to find out if it’s present in the URI and its value is not empty.