PhpStorm에서 route내에서 ​Declaration 작동하지 않을때 해결책 cover image

PhpStorm에서 route내에서 ​Declaration 작동하지 않을때 해결책

2019-01-14

    /**
     *
     *
//     * @method static \Illuminate\Support\Facades\Route get(string $uri, \Closure|array|string|null $action = null)
//     * @method static \Illuminate\Support\Facades\Route post(string $uri, \Closure|array|string|null $action = null)
//     * @method static \Illuminate\Support\Facades\Route put(string $uri, \Closure|array|string|null $action = null)
//     * @method static \Illuminate\Support\Facades\Route delete(string $uri, \Closure|array|string|null $action = null)
//     * @method static \Illuminate\Support\Facades\Route patch(string $uri, \Closure|array|string|null $action = null)
//     * @method static \Illuminate\Support\Facades\Route options(string $uri, \Closure|array|string|null $action = null)
//     * @method static \Illuminate\Support\Facades\Route any(string $uri, \Closure|array|string|null $action = null)
//     * @method static \Illuminate\Support\Facades\Route match(array|string $methods, string $uri, \Closure|array|string|null $action = null)
//     * @method static \Illuminate\Support\Facades\Route prefix(string  $prefix)
     * @method static \Illuminate\Routing\PendingResourceRegistration resource(string $name, string $controller, array $options = [])
     * @method static \Illuminate\Routing\PendingResourceRegistration apiResource(string $name, string $controller, array $options = [])
//     * @method static \Illuminate\Support\Facades\Route middleware(array|string|null $middleware)
     * @method static \Illuminate\Support\Facades\Route substituteBindings(\Illuminate\Support\Facades\Route $route)
//     * @method static void substituteImplicitBindings(\Illuminate\Support\Facades\Route $route)
//     * @method static \Illuminate\Support\Facades\Route as(string $value)
//     * @method static \Illuminate\Support\Facades\Route domain(string $value)
//     * @method static \Illuminate\Support\Facades\Route name(string $value)
//     * @method static \Illuminate\Support\Facades\Route namespace(string $value)
//     * @method static \Illuminate\Support\Facades\Route where(array|string $name, string $expression = null)
     * @method static \Illuminate\Routing\Router group(\Closure|string|array $value, \Closure|string $routes)
//     * @method static \Illuminate\Support\Facades\Route redirect(string $uri, string $destination, int $status = 301)
//     * @method static \Illuminate\Support\Facades\Route view(string $uri, string $view, array $data = [])
     * @see \Illuminate\Routing\Router
     */

_ide_helper.php:9441 주석 처리

참고링크: Does not work with laravel 5.7?