handleError("Undefined offset: 0", code example
Example: Undefined offset: 0 at laravel\framework\src\Illuminate\Routing\Router.php
run command :
composer require laravel/ui
--------------- OR -----------------
commenting Route::auth(); inside routes/web.php will also solve your issue.