Starting with Laravel 10, all code included within a default Laravel application now has PHP type hints.
Before
<?php namespace App\Http\Middleware; use App\Providers\RouteServiceProvider;use Closure;use Illuminate\Http\Request;use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated{ public function handle(Request $request, Closure $next, ...$guards) { // ... }}
After
<?php namespace App\Http\Middleware; use App\Providers\RouteServiceProvider;use Closure;use Illuminate\Http\Request;use Illuminate\Support\Facades\Auth;use Symfony\Component\HttpFoundation\Response; class RedirectIfAuthenticated{ public function handle(Request $request, Closure $next, string ...$guards): Response { // ... }}
Sign in with any of the following services to connect Shift with your Laravel project.
Don't use one of these services?
Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.